While not quite the same problem, this post describes something similar in concept, "banking strings" in a single large byte slice to avoid GC pressures.
https://syslog.ravelin.com/whats-all-that-memory-for-e89522e1c2c6 On Friday, April 20, 2018 at 11:26:08 PM UTC-4, Kaveh Shahbazian wrote: > > Is it safe to access slices that shares a back array concurrently? > (Assuming the length of slices will not change) > > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.