dizzyd at basho.com
Thu Oct 7 21:47:03 EDT 2010
> make_ref is 6 times faster than erlang:phash2(make_ref()) which is 50%
> faster than erlang:phash2(now()).
> Of course, in the grand scheme of things this might not be your biggest
> bottleneck, but why hashing now() when there exsists an idiomatic make_ref()
> solution? Am I missing something?
You're not missing anything, I think. make_ref() seems like a logical
and reasonable alternative. As you said, however, it's not (anywhere
near) our biggest bottleneck -- last time I ran the profiler it didn't
even show up in the top 100 hotspots. :)
More information about the riak-users