diff options
author | Volker Lendecke <vl@samba.org> | 2014-01-10 10:45:22 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-05-15 12:49:14 +0200 |
commit | 593c8103af5a5ed6b3c915369fed5b90efb42c25 (patch) | |
tree | 2afeb44a5b029105d84b50c2a7711de6d8c7b80f /python | |
parent | 5d998358e23ea572fa9c695ad953bab8ae49744c (diff) | |
download | samba-593c8103af5a5ed6b3c915369fed5b90efb42c25.tar.gz samba-593c8103af5a5ed6b3c915369fed5b90efb42c25.tar.xz samba-593c8103af5a5ed6b3c915369fed5b90efb42c25.zip |
talloc: Tune talloc_vasprintf
vsnprintf is significantly more expensive than memcpy. For the
common case where the string we print is less than a kilobyte, avoid
the second vsnprintf.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu May 15 12:49:14 CEST 2014 on sn-devel-104
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions