[Python-modules-team] Bug#534709: python-cjson: Unescaped solidus for decoding
bernd at bzed.de
Tue Jul 28 22:35:25 UTC 2009
I've talked with upstream about your patch, here is his answer:
> I know of it, but unfortunately it brings more problems than it solves. It
> doubles the space requirements for decoding a JSON string, because it
> allocates a second buffer to do a pre parsing, with the only purpose of
> changing the solidus. This also increases significantly the time required to
> decode a JSON string as it parses it twice, almost halving the decoder
> The correct fix it to modify the parser to take into account the solidus, so
> that it can all be done in 1 stage with only 1 buffer.
While I appreciate your work, I can't apply this patch unfortunately.
Bernd Zeimetz Debian GNU/Linux Developer
GPG Fingerprints: 06C8 C9A2 EAAD E37E 5B2C BE93 067A AD04 C93B FF79
ECA1 E3F2 8E11 2432 D485 DD95 EB36 171A 6FF9 435F
More information about the Python-modules-team