mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Explain more performance tricks in doc string
Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
parent
2ff07b9580
commit
1d7fcfe15d
@ -285,9 +285,12 @@ class _JSONPrimer(dict):
|
||||
|
||||
* O(1) type look instead of O(n) chain of costly isinstance() calls
|
||||
* __missing__ and __mro__ with caching to handle subclasses
|
||||
* inlined code with minor code duplication
|
||||
* inline code with minor code duplication (func lookup in enc_list/dict)
|
||||
* avoid surplus function calls (e.g. func is _identity, obj.__class__
|
||||
instead if type(obj))
|
||||
* function default arguments to turn global into local lookups
|
||||
* on-demand lookup of client capabilities with cache
|
||||
* avoid re-creation of bound method objects (e.g. result.append)
|
||||
* on-demand lookup of client capabilities with cached values
|
||||
|
||||
Depending on the client version number, the primer converts:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user