]> git.evergreen-ils.org Git - Evergreen.git/commit
Patch from Scott McKellar:
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 10 Mar 2008 04:25:35 +0000 (04:25 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 10 Mar 2008 04:25:35 +0000 (04:25 +0000)
commit4e316942619e6af3d6530f87c66bc12b0b599206
tree46485fb22331a224f3e41d947ea05dacd397f500
parente26c98e9230e19b1958521237a9008d08062fe13
Patch from Scott McKellar:

This patch is mostly a performance tweak.

1. I replaced all instances of "jsonParseString( "[]" )" with
"jsonNewObjectType(JSON_ARRAY)", which produces the same result
with less work.

2. Likewise I replaced all instances of "jsonParseString( "{}" )"
with "jsonNewObjectType(JSON_HASH)".

3. In two spots I eliminated a memset() applied to _tmp_dt, a variable
of type time_t.

4. In several calls to strftime() I used the sizeof operator to
replace hard-coded buffer lengths.

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