[fpc-pascal] Pointer hashing
Ryan Joseph
ryan at thealchemistguild.com
Tue Jan 31 15:42:14 CET 2017
Thanks for answering guys. Yes José is right, hashing the pointer wasn’t even a good solution so I used another hash. I had the pointers stored in another data type and I wanted to quickly test for the their entry in the table but I found another way.
> On Jan 30, 2017, at 4:28 PM, José Mejuto <joshyfun at gmail.com> wrote:
>
> Hello,
>
> After addressing the ^ conversion showed by other people I have a question. Why you need to hash a pointer ? Hashing a value is interesting to reduce its compare time (taking collisions into account) and/or verify message integrity, and hashing a pointer does not meet none of this goals as it is process wide unique (no collisions) and its size is the fastest compare operation (most architectures).
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list