idmap_cache: Use an fstring instead of talloc_asprintf
commit89013af15aa45311510318b517de8986580f4e2f
authorVolker Lendecke <vl@samba.org>
Wed, 4 Dec 2013 15:14:03 +0000 (4 15:14 +0000)
committerMichael Adam <obnox@samba.org>
Thu, 5 Dec 2013 00:10:25 +0000 (5 01:10 +0100)
tree384576f686053be5ad133e57fb05bb63e2466908
parent051fb9155642a8c74f892df3547203a55826d2b9
idmap_cache: Use an fstring instead of talloc_asprintf

In a test doing one million uid2sid calls this brings down user CPU from
1.3 seconds to 0.9 seconds. And it saves a few code lines.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/lib/idmap_cache.c