benoitkugler / textlayout

Fonts and text layout for Golang
MIT License
47 stars 7 forks source link

WIP: Restructure generated maps to use switch cases #25

Closed Jacalz closed 1 year ago

Jacalz commented 1 year ago

Looking at moving everything to maps. Still having a few issues but it's getting there.

Jacalz commented 1 year ago

This seems to bring down memory usage 0.6MB at the expense of 0.5MB larger binaries. It is up to you if it is worth it.

Jacalz commented 1 year ago

I have concluded now that this simply isn't worth it with the binary increases. It seems like our 2x memory increase is far from solved with this and I assume that the majority of it isn't coming from here. Will close this

benoitkugler commented 1 year ago

Thank you for trying, these metrics are very useful.