1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/python
Douglas Bagnall 6b4ff45805 dbcheck: check_object() caches of lower case attr names
The construct `'name' in map(str.lower, attrs)` is doubly inefficient,
because not only is it running the lower() function too often, it is
searching linearly in a temporary iterator for membership.

So we make a set, and use that.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <npower@samba.org>
2020-12-15 14:32:43 +00:00
..
examples PY3: change shebang to python3 in misc dirs 2018-12-14 18:00:40 +01:00
samba dbcheck: check_object() caches of lower case attr names 2020-12-15 14:32:43 +00:00
samba_external
modules.c py3: Remove PyStr_FromString() compatability macro 2019-06-24 17:24:27 +00:00
modules.h python: Create macro to hide ugly function signature cast 2019-05-16 17:55:16 +00:00
py3compat.h py3: Remove #define IsPy3BytesOrString(pystr) 2020-03-23 19:12:43 +00:00
pyglue.c py3: Add is_ad_dc_built option to python glue 2020-10-23 03:25:34 +00:00
wscript python: Add checks for some more required python packages 2020-08-20 22:49:26 +00:00