Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualGeometrian

Posted 03 February 2013 - 02:28 PM

Computing the hash function as:

size_t h  = func(vr.x);
size_t h2 = func(vr.y);
size_t h3 = func(vr.z);
hash_combine(h,h2);
hash_combine(h,h3);
return h;

or:

size_t h = 0u;
hash_combine(h,vr.x);
hash_combine(h,vr.y);
hash_combine(h,vr.z);
return h;

. . . seems to give no noticeable improvement.
Thanks,


#1Geometrian

Posted 03 February 2013 - 02:25 PM

Computing the hash function as:

size_t h  = func(vr.x);
size_t h2 = func(vr.y);
size_t h3 = func(vr.z);
hash_combine(h,h2);
hash_combine(h,h3);
return h;

. . . seems to give no noticeable improvement.
Thanks,


PARTNERS