-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minimize features array size (#4584)
Order index mapping of feature types according to how often they are actually used (based on actual use frequencies in Beverage Buddy and Bakery). This allows allocating a smaller features array for each state node to only hold the features that are actually instantiated. The case with only one used feature is further optimized to directly store the feature instance instead of using a one-item array. Reduces BasicElementView memory use from 149909 to 136045 bytes and the memory use in BeverageBuddy with an edit dialog open from 151733 to 146061 bytes.
- Loading branch information
Showing
3 changed files
with
206 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters