-
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.
Use array instead of HashMap for StateNode features
There is only a limited set of different state node configurations. For each configuration, we cache a mapping from feature type to the index in an array containing the actual feature instances. This representation is much more memory efficient than the previously used generic HashMap. Reduces BasicElementView memory use from 429706 to 278950 bytes and the memory use in BeverageBuddy with an edit dialog open from 262257 to 183211 bytes.
- Loading branch information
Showing
1 changed file
with
103 additions
and
55 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