diff options
| author | 2016-11-18 03:22:25 +0100 | |
|---|---|---|
| committer | 2016-11-18 03:22:25 +0100 | |
| commit | 582c59bf7dcf37270c2fd7e99b4982ebc9bcbc74 (patch) | |
| tree | 91b8c594acd89e4c53a8c00bd730446bbfc0c6cf /src/bplist.c | |
| parent | f1f2bcebc8690c9b420288aeede2e52c5bf18ccd (diff) | |
| download | libplist-582c59bf7dcf37270c2fd7e99b4982ebc9bcbc74.tar.gz libplist-582c59bf7dcf37270c2fd7e99b4982ebc9bcbc74.tar.bz2 | |
Improve plist_dict_set_item performance for large dictionaries with hash table
Diffstat (limited to 'src/bplist.c')
| -rw-r--r-- | src/bplist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bplist.c b/src/bplist.c index 9cc380c..124b024 100644 --- a/src/bplist.c +++ b/src/bplist.c | |||
| @@ -1156,7 +1156,7 @@ PLIST_API void plist_to_bin(plist_t plist, char **plist_bin, uint32_t * length) | |||
| 1156 | //list of objects | 1156 | //list of objects |
| 1157 | objects = ptr_array_new(256); | 1157 | objects = ptr_array_new(256); |
| 1158 | //hashtable to write only once same nodes | 1158 | //hashtable to write only once same nodes |
| 1159 | ref_table = hash_table_new(plist_data_hash, plist_data_compare); | 1159 | ref_table = hash_table_new(plist_data_hash, plist_data_compare, free); |
| 1160 | 1160 | ||
| 1161 | //serialize plist | 1161 | //serialize plist |
| 1162 | ser_s.objects = objects; | 1162 | ser_s.objects = objects; |
