[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: JSON/YAML/TOML/etc. parsing performance
From: |
Mark Oteiza |
Subject: |
Re: JSON/YAML/TOML/etc. parsing performance |
Date: |
Mon, 18 Sep 2017 09:58:16 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) |
> Philipp Stephani <address@hidden> schrieb am So., 17. Sep. 2017 um 20:46 Uhr:
>
> I've discovered that the interface and documentation of Jansson are much
> better than
> the ones of json-c, so I switched to Jansson. I've attached a patch.
Doing the following on a 276K file:
(with-temp-buffer
(insert-file-contents-literally "test.json")
(benchmark-run 10
(goto-char (point-min))
(json-parse-buffer)))
These are my rough average benchmarks:
Time GCs GC time
Jansson 0.33 10 0.15
json.el 1.21 38 0.48
Nice. Was there a particular reason (aside from access time) you chose
hash tables instead of a sexp form?
- Re: JSON/YAML/TOML/etc. parsing performance, (continued)
- Re: JSON/YAML/TOML/etc. parsing performance, Richard Stallman, 2017/09/16
- Re: JSON/YAML/TOML/etc. parsing performance, Philipp Stephani, 2017/09/17
- Speed of Elisp (was: JSON/YAML/TOML/etc. parsing performance), Stefan Monnier, 2017/09/17
- Re: JSON/YAML/TOML/etc. parsing performance, Philipp Stephani, 2017/09/18
- Re: JSON/YAML/TOML/etc. parsing performance,
Mark Oteiza <=
- Re: JSON/YAML/TOML/etc. parsing performance, Philipp Stephani, 2017/09/18
- Re: JSON/YAML/TOML/etc. parsing performance, Mark Oteiza, 2017/09/18
- Re: JSON/YAML/TOML/etc. parsing performance, Philipp Stephani, 2017/09/18
- Re: JSON/YAML/TOML/etc. parsing performance, Eli Zaretskii, 2017/09/18
- Re: JSON/YAML/TOML/etc. parsing performance, Philipp Stephani, 2017/09/18
- Re: JSON/YAML/TOML/etc. parsing performance, Eli Zaretskii, 2017/09/18
- Re: JSON/YAML/TOML/etc. parsing performance, Thien-Thi Nguyen, 2017/09/18
- Re: JSON/YAML/TOML/etc. parsing performance, Eli Zaretskii, 2017/09/18
- Re: JSON/YAML/TOML/etc. parsing performance, Mark Oteiza, 2017/09/18
- Re: JSON/YAML/TOML/etc. parsing performance, Eli Zaretskii, 2017/09/18