What does it mean to clear a map? Even if Go admitted that a map was a specific form of hash table with certain chaining/bucket choices, what would an empty one be that is different than a new one? I can think of answers to this but if you say what behavior you want to optimize by clearing and reusing a map that would help. For example, do you expect the next round of insertions to have about the same number of unique keys--is that your case?
On Sun, Aug 12, 2018 at 4:24 AM Marvin Stenger <marvin.stenge...@gmail.com> wrote: > > >> Even something similar to https://golang.org/cl/137880043 if we had to >> clear the actual values would be great. >> > -- *Michael T. jonesmichael.jo...@gmail.com <michael.jo...@gmail.com>* -- 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.