You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've implemented a few improvements to gotext for my own use and thought I'd offer them back.
The first is a set of "Append" equivalents to the Get[NC] methods that append to a byte slice instead of allocating new strings. This improves performance substantially:
I also have a patch that replaces gotext's maps/mutexes with lock-free hashmaps. The performance improvement wasn't as dramatic as I had hoped, and it requires an additional dependency (hashmap) and bumping the required Go version to 1.18 for generics support, so I'm not sure it'll meet the bar for inclusion in gotext. Performance (vs the above):
I've implemented a few improvements to gotext for my own use and thought I'd offer them back.
The first is a set of "Append" equivalents to the Get[NC] methods that append to a byte slice instead of allocating new strings. This improves performance substantially:
I also have a patch that replaces gotext's maps/mutexes with lock-free hashmaps. The performance improvement wasn't as dramatic as I had hoped, and it requires an additional dependency (hashmap) and bumping the required Go version to 1.18 for generics support, so I'm not sure it'll meet the bar for inclusion in gotext. Performance (vs the above):
If there's any interest, I can rebase it on top of the current version and push it to my repo for review.
The text was updated successfully, but these errors were encountered: