spion / hashtable-latencies

Latency of a web service that stores a large hashtable, in multiple languages
43 stars 8 forks source link

go: m[k] = nil does not delete the entry for the map #3

Closed randall77 closed 8 years ago

randall77 commented 8 years ago

You need to use delete(m, k). Otherwise the map will grow without bound (with k:nil entries).

ngrilly commented 8 years ago

I've submitted PR #5 to fix this.

spion commented 8 years ago

Merged, will update charts soon.

ngrilly commented 8 years ago

Great :-)