tag: optimize tag_dup(), copy item references

Don't call tag_pool_get_item() for duplicating tags, just increase the
item's reference counter instead.
This commit is contained in:
Max Kellermann
2008-08-29 15:04:49 +02:00
parent d8ad109e10
commit d38d2bc353
3 changed files with 42 additions and 7 deletions
+2
View File
@@ -26,6 +26,8 @@ struct tag_item;
struct tag_item *tag_pool_get_item(enum tag_type type,
const char *value, int length);
struct tag_item *tag_pool_dup_item(struct tag_item *item);
void tag_pool_put_item(struct tag_item *item);
#endif