]> git.evergreen-ils.org Git - OpenSRF.git/commit
A small performance tweak.
authorscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 16 Mar 2010 04:41:04 +0000 (04:41 +0000)
committerscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 16 Mar 2010 04:41:04 +0000 (04:41 +0000)
commit653858c72cbafd1055ff8b34ac5625124a00fef5
tree42cf4886035aacaa9d8b7040a2c62b777d043756
parent89a3961658e651ecc040c78b130045c2325e90b3
A small performance tweak.

When we receive a new message, we update current_locale with the
locale of the message.

The tweak: if current_locale is already the same as the locale of
the message (which is presumably most of the time in practice), then
don't update it.  That way we avoid a malloc() and a free().

M    src/libopensrf/osrf_message.c

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1937 9efc2488-bf62-4759-914b-345cdb29e865
src/libopensrf/osrf_message.c