diff options
author | Mark Oteiza <mvoteiza@udel.edu> | 2017-08-14 01:54:11 -0400 |
---|---|---|
committer | Mark Oteiza <mvoteiza@udel.edu> | 2017-08-14 01:54:11 -0400 |
commit | ab2da681b904cd0c7bfac3a6f5fb3347cc591f20 (patch) | |
tree | 086e96b2a670d596f61fc159c5c72a85bec29692 /test/lisp/emacs-lisp/cl-print-tests.el | |
parent | 5bdc97d55df30f6af107ddd136901983a7e2706a (diff) | |
download | emacs-ab2da681b904cd0c7bfac3a6f5fb3347cc591f20.tar.gz emacs-ab2da681b904cd0c7bfac3a6f5fb3347cc591f20.tar.bz2 emacs-ab2da681b904cd0c7bfac3a6f5fb3347cc591f20.zip |
Tiny JSON performance improvement
Get rid of some needless uses of apply. Measuring with
(benchmark-run 10 (json-read-file "test.json"))
showed 1.5-2.5% reduction of execution time.
* lisp/json.el (json-peek): Nix let-binding.
(json-read-string): Use concat for making a string from chars.
(json-read-array): Use cond and more appropriate conversion instead
of blindly applying.
Diffstat (limited to 'test/lisp/emacs-lisp/cl-print-tests.el')
0 files changed, 0 insertions, 0 deletions