diff options
author | Max Kellermann <max@duempel.org> | 2008-08-29 15:04:49 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-02 00:20:41 -0700 |
commit | ad6fadbd47ccdf16477bd0b65cdca90c21c3041d (patch) | |
tree | 2fd7eaa40a4b4f7b070bac0e2239a154aa409f61 /src/tag_pool.h | |
parent | fbe650b1e022f6ca69cc95d79019f218f450e791 (diff) | |
download | mpd-ad6fadbd47ccdf16477bd0b65cdca90c21c3041d.tar.gz mpd-ad6fadbd47ccdf16477bd0b65cdca90c21c3041d.tar.xz mpd-ad6fadbd47ccdf16477bd0b65cdca90c21c3041d.zip |
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.
Diffstat (limited to 'src/tag_pool.h')
-rw-r--r-- | src/tag_pool.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |