diff options
author | Matthieu Patou <mat@matws.net> | 2011-11-14 18:53:30 +0100 |
---|---|---|
committer | Matthieu Patou <mat@matws.net> | 2011-12-19 11:49:19 +0100 |
commit | 55af1a7cf78c2a04ec82dc5a3bdcaedd846dd3fc (patch) | |
tree | e87ea15c3f782315ccf25983cbaea38e4d3f1ea3 /lib/zlib/examples | |
parent | e34fe4dcb60d2fbf7d805fc348d3a25d2d8950b7 (diff) | |
download | samba-55af1a7cf78c2a04ec82dc5a3bdcaedd846dd3fc.tar.gz samba-55af1a7cf78c2a04ec82dc5a3bdcaedd846dd3fc.tar.bz2 samba-55af1a7cf78c2a04ec82dc5a3bdcaedd846dd3fc.zip |
s4-drs: avoid calling unecesserly ldb_msg_find_attr_as_* as this call in unefficient
Current implementation of ldb_msg_find_attr_as_* iterate on the list of
attributes returned by the search and make a string comparison. As we
sorting the array of messages / guids we tend to call this function many
times. By storing the GUID and the USN in a separate structure we are
sure to call this function only once per attribute and object.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'lib/zlib/examples')
0 files changed, 0 insertions, 0 deletions