##// END OF EJS Templates
encoding: change jsonmap to a list indexed by code point...
encoding: change jsonmap to a list indexed by code point This is slightly faster and convenient to implement a paranoid escaping. $ python -m timeit \ -s 'from mercurial import encoding; data = str(bytearray(xrange(128)))' \ 'encoding.jsonescape(data)' original: 100000 loops, best of 3: 15.1 usec per loop this patch: 100000 loops, best of 3: 13.7 usec per loop

File last commit:

r18200:b3126667 default
r28066:d1cc0712 default
Show More
feed-icon-14x14.png
0 lines | 689 B | image/png | TextLexer
/ mercurial / templates / static / feed-icon-14x14.png
rendered-image