]> git.evergreen-ils.org Git - Evergreen.git/commit
In the initialization routines of oils_cstore.c: recoded a couple
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 3 Aug 2009 03:02:48 +0000 (03:02 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 3 Aug 2009 03:02:48 +0000 (03:02 +0000)
commit736fc2516e2a134eea33af145e3e51a8fb687b58
treefcbdabe2c2cd59ef03eaf0bc6e6fdfdd13b3b233
parentc9fa5a5f286be31bb727d241bf588b5768f1a61f
In the initialization routines of oils_cstore.c: recoded a couple
of loops to use an osrfHashIterator, instead of creating an
osrfStringArray of keys and then traversing that.  This change
eliminates over 500 mallocs and frees.  In addition, traversing
the osrfHash with an iterator just hops along a linked list,
which is almost certainly faster than calculating a hash total
for every key.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@13789 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/c-apps/oils_cstore.c