From d38d2bc3533dcfb661a3cbb8bd6cd9574c31ab69 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Aug 2008 15:04:49 +0200 Subject: 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. --- src/tag_pool.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tag_pool.h') diff --git a/src/tag_pool.h b/src/tag_pool.h index 4f063d1ed..e19b2f4b4 100644 --- a/src/tag_pool.h +++ b/src/tag_pool.h @@ -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 -- cgit v1.2.3