Skip to content

Clean Compile times #604

Closed
Closed
@semtexzv

Description

While bevy seems to be much faster than Amethyst to compile, It still takes several minutes to chew through all the dependencies. On my laptop, I can build the simple game that references bevy in around 3 minutes. Most of these 3 minutes however, are spent on 4 different crates:

  • ash - 47s
  • wgpu - 40s
  • syn - 37s
  • bevy_ecs - 29s

It would be nice to use the current inflow of new users and contributors to optimize some of these crates in order to reduce biggest offenders in compile time.

Also bevy_ecs currently uses 3 nested macro calls, in order to generate necessary impls supporting fun.system() syntax. If possible, we should try to improve this/find an alternative, since the display messages aren't that good if user uses something that isn't resource. Also touches on #25

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-Build-SystemRelated to build systems or continuous integrationC-FeatureA new feature, making something new possibleC-PerformanceA change motivated by improving speed, memory usage or compile times

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions