summaryrefslogtreecommitdiff
path: root/librpc/wscript_build
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2018-02-16 17:53:15 +1300
committerDouglas Bagnall <dbagnall@samba.org>2018-02-22 01:04:18 +0100
commit6ef6ddce5a64c55729c2e3d423757f504b0ab15e (patch)
treec4196990dd5fd42ee3db23e05d279d888133f6cb /librpc/wscript_build
parent33ef0e57a4f08eae5ea06f482374fbc0a1014de6 (diff)
downloadsamba-6ef6ddce5a64c55729c2e3d423757f504b0ab15e.tar.gz
shift read_hex_bytes() and parse_guid_string() into lib/util
read_hex_bytes() is going to be used in lib/util/rfc1738.c. parse_guid_string() is shifted for two reasons: Firstly, it is called very often in some operations, sometimes constituting a few percent of the CPU load, and it makes several calls to read_hex_bytes(). We want the compiler to be able to inline those calls if it thinks that is wise. Secondly, there are other places that could do with fast GUID parsing. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'librpc/wscript_build')
-rw-r--r--librpc/wscript_build2
1 files changed, 1 insertions, 1 deletions
diff --git a/librpc/wscript_build b/librpc/wscript_build
index c4b647c242d..36414fbddf4 100644
--- a/librpc/wscript_build
+++ b/librpc/wscript_build
@@ -717,7 +717,7 @@ bld.SAMBA_LIBRARY('dcerpc-samba',
bld.SAMBA_LIBRARY('ndr',
source='ndr/ndr_string.c ndr/ndr_basic.c ndr/uuid.c ndr/ndr.c ndr/ndr_misc.c gen_ndr/ndr_misc.c ndr/util.c',
pc_files='ndr.pc',
- public_deps='samba-errors talloc samba-util',
+ public_deps='samba-errors talloc samba-util util_str_hex',
public_headers='gen_ndr/misc.h gen_ndr/ndr_misc.h ndr/libndr.h:ndr.h',
header_path= [('*gen_ndr*', 'gen_ndr')],
vnum='0.1.0',