BuckeyeSoftware / rex

rex engine and game
MIT License
15 stars 0 forks source link

rx::global<T> is very large #20

Closed graphitemaster closed 4 years ago

graphitemaster commented 4 years ago

consider shrinking the global_node size, can use several tricks here:

graphitemaster commented 4 years ago

Did the XOR linked-list approach and tag bits stuff, still unsure if a global allocator for globals is a good idea, it would trim 64 bytes off each global.

graphitemaster commented 4 years ago

Made even smaller

graphitemaster commented 4 years ago

We can use the tag bits for storing the flags inside m_argument_store as the last space saving optimization here.

graphitemaster commented 4 years ago

This is as small as it's ever going to be.