[issue7451] improve json decoding performance

2010-09-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r84505. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue7451] improve json decoding performance

2010-09-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch against py3k. -- stage: patch review -> commit review versions: -Python 2.7 Added file: http://bugs.python.org/file18755/json-opts4.patch ___ Python tracker

[issue7451] improve json decoding performance

2009-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le dimanche 27 décembre 2009 à 11:10 +, Bob Ippolito a écrit : > Bob Ippolito added the comment: > > I applied most of this patch to r206 of simplejson trunk Thank you. Will you port it to CPython yourself or would you prefer someone else to do it? -

[issue7451] improve json decoding performance

2009-12-27 Thread Bob Ippolito
Bob Ippolito added the comment: I applied most of this patch to r206 of simplejson trunk -- ___ Python tracker ___ ___ Python-bugs-lis

[issue7451] improve json decoding performance

2009-12-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I wonder if you can make a patch for 2.6 python branch. No, 2.6 doesn't have the same C accelerator in the first place. -- ___ Python tracker ___

[issue7451] improve json decoding performance

2009-12-09 Thread Valentin Kuznetsov
Valentin Kuznetsov added the comment: I wonder if you can make a patch for 2.6 python branch. -- ___ Python tracker ___ ___ Python-bug

[issue7451] improve json decoding performance

2009-12-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is the patch. -- Added file: http://bugs.python.org/file15484/json-opts3.patch ___ Python tracker ___ _

[issue7451] improve json decoding performance

2009-12-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've just noticed that there is a persistent decoder instance in `json._default_decoder`. To avoid keeping references to past keys forever, this updated patch clears the memo dict when a string has finished decoding. --

[issue7451] improve json decoding performance

2009-12-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Unless Bob applies it to simplejson as well, that is. -- ___ Python tracker ___ ___ Python-bugs-list

[issue7451] improve json decoding performance

2009-12-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: The problem with this is that it makes json in Python diverge even more from the simplejson trunk. -- nosy: +benjamin.peterson ___ Python tracker ___

[issue7451] improve json decoding performance

2009-12-07 Thread Antoine Pitrou
New submission from Antoine Pitrou : This patch does two things: - it speeds up decoding of JSON objects by doing fewer temporary allocations - it reduces memory use of decoded JSON objects by reusing key strings when they appear several times in a JSON string -- components: Library (Lib