C++: Optimize PropertyProxy
authorPetri Lehtinen <petri@digip.org>
Mon, 8 Feb 2010 18:51:09 +0000 (20:51 +0200)
committerPetri Lehtinen <petri@digip.org>
Mon, 8 Feb 2010 18:51:09 +0000 (20:51 +0200)
commit7e8b128740336bad50e32bbe9dc86f47b406ce6a
treea22b1fe63b8e85802f935d145bfe55f3b8aded29
parentacec2559a5da3390dcf2728eb37e69ecedf33267
C++: Optimize PropertyProxy

When the property already exists in the object, we can store an
iterator pointing to that property, instead of duplicating the key.

When the property (key) is not present in the object, we still have to
duplicate the key.
src/jansson.hpp
src/jansson.ipp