Blender Git Loki
Git Commits -> Revision 7f38872
Revision 7f38872 by Campbell Barton (master) August 17, 2021, 14:23 (GMT) |
RNA: de-duplicate enums in generated source Reuse existing enums instead of expanding them since it bloats the binary. The icons enum for example contains over 900 items and was being expanded 17 times (once for each function that takes an icon argument). Similar with the event type enum which contains over 200 items and was duplicated 7 times. makesrna.c now matches enum definitions from declarations in RNA_enum_items.h, using their identifiers when found. The overall space saving on my system is 776kb (tested with a stripped release build). Reviewed By: brecht Ref D12245 |
Commit Details:
Full Hash: 7f388725337d185a25b8dd3e90d479da86fb7aa1
Parent Commit: 0246128
Lines Changed: +309, -238
1 Added Path:
/source/blender/makesrna/RNA_enum_items.h (+240, -0) (View)