Hello, attached a patch that optimize 2 unneeded lookups in both AddKey and RemoveKey. In the case of AddKey, I used the first overload of map::insert[1], which returns a pair "consisting of an iterator to the inserted element (or to the element that prevented the insertion) and a bool denoting whether the insertion took place."
Regards, Francesco [1] https://en.cppreference.com/w/cpp/container/map/insert
PdfDictionary-optimize-AddKey-RemoveKey.diff
Description: Binary data
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users