{% for feature in features|sort(attribute='name') if feature.is_protected_feature %}Helmut Januschkanit: should add a comment that there are only a few protected features.
Done.
bool* flag;Helmut JanuschkaThere's likely also a decent savings to change all the static fields to a single `bool[]` array, and use indices.
Done. Replaced the per-feature static bools with a single feature_states_[] array indexed by a generated enum (uint16_t), and the lookup/mapping tables now store indices instead of bool* pointers
// keeps this table free of generated setter instantiations. ProtectedHelmut Januschkanit: comment should say why this is desirable (so that the functions need not exist after inlining)
Done
bool if_overridden;Helmut Januschkanit: I think this is causing 3 (or 7) bytes of padding in the struct. Could move it to a separate bool[] to save a bunch of padding.
Done. Split the mapping into parallel arrays (base::Feature*[] / uint16_t[] / bool[]), so entries cost 11 bytes instead of 24 (or 16 after the index change).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |