[Top][All Lists]

[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:

  (insert-file-contents-literally "test.json")
  (benchmark-run 10
    (goto-char (point-min))

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?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]