These are chat archives for boostorg/hana

30th
Jan 2016
Jason Rice
@ricejasonf
Jan 30 2016 21:48
@ldionne I made what I thought was a derpy comment about having HashTable as a template parameter for map so that insert could efficiently create a new map, and then I deleted it. Maybe it was valid though.
Louis Dionne
@ldionne
Jan 30 2016 23:42
How would having the HashMap be a parameter of hana::map make it possible not to recreate the map on every single call? Actually, technically, we won’t have to rebuild the map on every single call even now, by just using bucket_insert (in my implementation) cleverly.
Jason Rice
@ricejasonf
Jan 30 2016 23:45
I may very well be mixed up. When you call insert, doesn't it have to create a new instance of a new map?
Louis Dionne
@ldionne
Jan 30 2016 23:47
Yeah, right now.
But like I said, it could be optimized to use bucket_insert. I just have not taken the time to write it that way yet
Jason Rice
@ricejasonf
Jan 30 2016 23:48
I'm very interested to see how you end up doing that.
Louis Dionne
@ldionne
Jan 30 2016 23:49
Ok, I’ll try to do it tomorrow :p
Jason Rice
@ricejasonf
Jan 30 2016 23:49
oh, no rush