Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-12-12Correct own mistake in 3e499c1aCampbell Barton
2015-11-29Cleanup: sync edgehash w/ ghash remove logicCampbell Barton
2015-11-29Cleanup: rename `hash` -> `bucket_index`, edgehash APICampbell Barton
Was confusing since a hash isn't typically used as an index on its own. Also C99 for loop for bucket resize loop.
2015-11-29Cleanup: ghash/edgehash styleCampbell Barton
Call functions on own lines (nicer for debugging)
2015-05-20doxygen: corrections/updatesCampbell Barton
Also add depsgraph & physics
2015-04-09Remove invalid assertCampbell Barton
2015-04-07EdgeHash: ensure function, avoids multiple lookupsCampbell Barton
2014-12-18cleanup: use const for smallhash & minor editsCampbell Barton
2014-12-17Docs: comments (hash table & beauty fill)Campbell Barton
2014-12-09Add edgehash remove, clear functions, Heap clearCampbell Barton
Edgehash was missing removal functions (remove, popkey, clear), since it wasn't needed so far, but is based on same code as ghash which has them. also add heap clear() method so we can reuse heaps. (needed for upcoming fix).
2014-08-12GHash: add flag get/set for gsetCampbell Barton
2014-08-07GHash/EdgeHash: avoid NULL check on iterator initCampbell Barton
2014-07-15Edgehash: Improve magic number for hashingCampbell Barton
Gives consistently better results. Tested with wide variety of meshes.
2014-07-14GHash, EdgeHash: add debugging function to measure the hash qualityCampbell Barton
Can use to check on improvements to hash functions.
2014-07-14Remove redundant NULL checkCampbell Barton
2014-06-13GSet, GHash: Add BLI_gset_add, since its common to add members to a setCampbell Barton
also rename BLI_edgeset_reinsert -> BLI_edgeset_add, in this case its the same.
2014-04-21GHash, Edgehash: add lookup_default() funcs.Campbell Barton
Returns a fallback argument when the key isn't found.
2014-04-20GHash, EdgeHash: hint on unlikely branchCampbell Barton
also avoid searching buckets for empty hashes
2014-04-08GHash/Edgehash: make simple iterator checking functions inline.Campbell Barton
also remove NULL check, only a few areas made use of this.
2014-04-08Mempool: delay allocating an initial chunk, its not always usedCampbell Barton
2014-04-05Mempool: remove BLI_MEMPOOL_SYSMALLOC, MEM_* allocs are more efficient nowCampbell Barton
2014-03-15Code cleanup: use r_ prefix for return argsCampbell Barton
2014-01-21Replace XOR swapping by default ("naive", with extra var) one.Bastien Montagne
Ref: http://en.wikipedia.org/wiki/XOR_swap_algorithm, modern compilers/CPUs are much more efficient with "naive" algo than XOR one. Doubled check, for me in an optimized build, XOR is several times slower than naive algo.
2013-11-01code cleanup: spellingCampbell Barton
2013-09-02add hash iterator functions to access the pointer to the value.Campbell Barton
2013-09-01move strict compiler checks into a header so its easier to manage in one ↵Campbell Barton
place (pragmas were copied around). also enable more strict warnings for BLF (which had some incorrect casts).
2013-08-31mempool internal change, use unsigned ints where possible (less overhead),Campbell Barton
also quiet compiler warning for BLI_LINKSTACK_FREE macro.
2013-08-26internal changes to ghash/edgehash, reorganize to split out resizing the ↵Campbell Barton
hash from insertion.
2013-08-26add some safety checks in debug mode to ensure sets/hashes aren't confused.Campbell Barton
2013-08-26minor changes to edgehassh/ghashCampbell Barton
- no need to zero vars when freeing ghash - de duplicate ghash remove code. - edgehash clear now works more like ghash.
2013-08-26replace hashes with sets where possible.Campbell Barton
2013-08-26BKI_gset and EdgeSet api, use when hash values aren't used (reuses ghash ↵Campbell Barton
internally without allocating space for the value).
2013-08-25clearing the mempool can now keep more then a single element reserved.Campbell Barton
2013-08-25doxygen docs for ghash/edgehashCampbell Barton
2013-08-25use ints for ghash/edgehash flags, since its allocated theres not much point ↵Campbell Barton
to try save a few bytes here.
2013-08-24cloth was using edgehash not quite correctly:Campbell Barton
- was ordering vertex args unnecessarily. - was adding the same edges multiple times into the edgehash.
2013-08-24revert bucket size change (edgehash was this way for years, since r26206, ↵Campbell Barton
ghash since r57657) having 2 free buckets for each entry is faster but uses more memory. use the original size, best case 3 entries per bucket.
2013-08-24edge hash: take an arg for the guarded-malloc string (as ghash does)Campbell Barton
2013-08-24ghash and edgehash api, allow newly defined hashes to take in the size of ↵Campbell Barton
the hash as an arg (avoids resizing in simple cases when the hash is created and filled immediately).
2013-08-22ghash/edgehash flag wasn't being initialized for new hashes. also init vars ↵Campbell Barton
in same order for ghash/edgehash.
2013-08-18add hash function BLI_ghash_assign, BLI_edgehash_assignCampbell Barton
avoids remove,insert and only hashes the key once.
2013-08-18minor api cleanup for ghash/edgehashCampbell Barton
- use single inlined lookup function. - move comments into source. - pack iterator vars more efficiently.
2013-08-18add assert for hashes if an existing element is ever inserted into a ↵Campbell Barton
ghash/edgehash. the outliner does this intentionally, so add a flag to allow this situation optionally.
2013-07-02remove nan copyrights from code added since blender become opensource (copy ↵Campbell Barton
paste errors), also remove BKE_script.h
2013-06-23Make edgehash and ghash use the same limit for expanding buckets, r26206 ↵Campbell Barton
changed ghash. double checked and r26206 does indeed give a speedup, so change for edgehash too.
2013-06-23reduce sign conversion comparisons for smallhash and tweak warnings elsewhere.Campbell Barton
2013-05-10use unsigned ints for edgehashCampbell Barton
2013-05-08use unsigned int's for smallhash, avoids using ABS when converting anCampbell Barton
int from a key.
2013-04-22fix [#35026] Curve build modifierCampbell Barton
2012-10-20code cleanup:Campbell Barton
- define array sizes for functions that take vectors. - quiet some -Wshadow warnings. - some copy/paste error in readfile.c made it set the same particle recalc flag twice.