Files
freeipa/ipalib
Christian Heimes 8159c2883b Faster JSON encoder/decoder
Improve performance of FreeIPA's JSON serializer and deserializer.

* Don't indent and sort keys. Both options trigger a slow path in
  Python's json package. Without indention and sorting, encoding
  mostly happens in optimized C code.
* Replace O(n) type checks with O(1) type lookup and eliminate
  the use of isinstance().
* Check each client capability only once for every conversion.
* Use decoder's obj_hook feature to traverse the object tree once and
  to eliminate calls to isinstance().

Closes: https://fedorahosted.org/freeipa/ticket/6655
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
2017-02-15 17:27:56 +01:00
..
2016-09-27 13:35:58 +02:00
2015-09-01 11:42:01 +02:00
2016-11-24 15:46:40 +01:00
2016-12-02 13:00:06 +01:00
2017-02-15 07:13:37 +01:00
2017-02-10 16:16:44 +01:00
2017-02-15 17:27:56 +01:00
2016-10-20 18:43:37 +02:00
2016-12-02 09:45:14 +01:00
2016-11-25 16:18:22 +01:00