Skip to content

Avoid FLX file generation. #9900

Closed
Closed

Description

@chinmaygarde

FLX files were created for reasons that don't seem to be important anymore. However, having assets in a compressed archive within the application bundle (which itself is compressed when delivered via the stores anyway) adds overhead when accessed. In this trace attached below, to locate the asset in the compressed archive and copy it out takes about 4.5ms. We should consider not generating FLX files and packaging the assets directly in the application bundle.

screen shot 2017-05-08 at 2 25 42 pm

Activity

  1. sethladd commented on May 8, 2017

    @sethladd
    Contributor
  2. tvolkert commented on Jul 6, 2017

    @tvolkert
    Contributor

    Asset variants currently aren't wired up correctly inside Google because we hand-rolled our own FLX building, and it got stale (asset variant file layout has since been redone a few times). Removing FLX would simplify things a lot on that front too.

  3. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Aug 29, 2017
  4. mit-mit commented on Sep 1, 2017

    @mit-mit
    Member

    @chinmaygarde would this also enable #11892 ?

  5. Hixie commented on Dec 20, 2017

    @Hixie
    Contributor

    @szakarias is making great progress on this.
    This is a top priority for the current milestone.

  6. szakarias commented on Feb 14, 2018

    @szakarias
    Contributor

    The work for iOS and Android is done, will keep this open until all the FLX related code is removed.

  7. szakarias commented on Mar 9, 2018

    @szakarias
    Contributor

    Closing this and tracking the final FLX cleanup in #15338.

  8. github-actions commented on Sep 3, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  9. locked as resolved and limited conversation to collaborators on Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

a: assetsPackaging, accessing, or using assetsc: API breakBackwards-incompatible API changestoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions