Blender Git Commit Log

Git Commits -> Revision 0658659

Revision 0658659 by Campbell Barton (master)
March 2, 2016, 00:18 (GMT)
GHash: BLI_ghash_ensure_p_ex now takes a pointer-to-key arg

This is an alternative to passing a copy callback which is some times inconvenient.
Instead the caller can write to the key - needed when the key is duplicated memory.

Allows for minor optimization in ghash/gset use.

Also add BLI_gset_ensure_p_ex

Commit Details:

Full Hash: 0658659f74ad134bddbc982f7e1de0ff9b8bda66
Parent Commit: bac9819
Lines Changed: +42, -16

5 Modified Paths:

/source/blender/blenkernel/intern/icons.c (+3, -2) (Diff)
/source/blender/blenlib/BLI_ghash.h (+2, -1) (Diff)
/source/blender/blenlib/intern/BLI_ghash.c (+29, -5) (Diff)
/source/blender/bmesh/operators/bmo_subdivide_edgering.c (+3, -4) (Diff)
/source/blender/imbuf/intern/indexer.c (+5, -4) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021