Page MenuHome

GHash - add optional hash storage in entries
AbandonedPublic

Authored by Bastien Montagne (mont29) on Mar 13 2015, 1:25 PM.

Details

Reviewers
None
Maniphest Tasks
T43766: GHash Improvements
Summary

Based on D1178, D1179, and D1180.

Note this is put here mostly for sake of consistency, and keep trace of this work. Storing hashes only benefits to keys needing complex, expansive hashing/comparison (i.e. mostly strings), but in Blender currently our string-hashed parts of the code do not really suffer from ghash performance issues, so it adds complexity with no real benefit.

Diff Detail

Event Timeline

Bastien Montagne (mont29) retitled this revision from to GHash - add optional hash storage in entries.
Bastien Montagne (mont29) updated this object.
Bastien Montagne (mont29) set the repository for this revision to rB Blender.

This could be good to have but would really want to see real-world advantage, as tangible benefit for the extra complexity.
.
For now I'd rather just leave it out (some of the other GHash patches you've done seem like they're more beneficial).

source/blender/blenlib/intern/BLI_ghash.c
124

prefer to use flags instead of adding booleans.

Yes I agree, I posted it here merely to keep trace of it in case we need it later. :)

@Bastien Montagne (mont29), could you set this to *Plan Changes*. This patch keeps showing up in our review sessions :)

Bastien Montagne (mont29) planned changes to this revision.Mar 25 2015, 6:36 PM