]> git.eshelyaron.com Git - emacs.git/commit
More JSON optimization
authorMark Oteiza <mvoteiza@udel.edu>
Fri, 15 Sep 2017 13:49:27 +0000 (09:49 -0400)
committerMark Oteiza <mvoteiza@udel.edu>
Fri, 15 Sep 2017 13:49:27 +0000 (09:49 -0400)
commit3b783a75ad6b609d4e0f60c2d31d4fe91dd08c62
treecc68fda423370b7ff00cc6f5dd81de61b698c6e7
parent817e92b2bddbdbe18d3b8cd34533b4bec04d313d
More JSON optimization

Last I checked, inlining json-skip-whitespace didn't make much
difference.  However, changing defsubsts to define-inline results
in roughly 15% reduction in read time on a 200K file.
* lisp/json.el (json-advance, json-peek, json-pop):
(json-skip-whitespace): Inline with define-inline.
(json-read-keyword): Don't use whitespace syntax.
(json-add-to-object): Simpler condition.
lisp/json.el