davidlattimore / wild

Apache License 2.0
664 stars 16 forks source link

SectionSlot is unnecessarily large #102

Closed davidlattimore closed 2 months ago

davidlattimore commented 2 months ago

We create quite a lot of SectionSlots. Each one is currently 80 bytes. I'm going to see if I can reduce this a bit.

davidlattimore commented 2 months ago

SectionSlot is now reduced to 32 bytes. Best of all some of the changes were definite wins in terms of reducing code complexity and I don't think any of the changes made things objectively worse. I'm probably hitting the point of diminishing returns, at least for now. Several of the enum variants now have the same size, so to get further reductions, all those variants would need to reduce. So I'll leave further reductions for now and call this done.