[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: JSON/YAML/TOML/etc. parsing performance
From: |
Eli Zaretskii |
Subject: |
Re: JSON/YAML/TOML/etc. parsing performance |
Date: |
Mon, 09 Oct 2017 09:53:43 +0300 |
> From: Philipp Stephani <address@hidden>
> Date: Sun, 08 Oct 2017 23:14:18 +0000
> Cc: address@hidden, address@hidden
>
> Jansson only accepts UTF-8 strings, and at least in our usage will also only
> hand out UTF-8 strings.
How can we be 100% sure of that? We don't trust any other libraries
with such high fidelity, we always decode any external data.
> It's totally OK to rely on this assumption since all code that's involved
> here is part of the Emacs core, so it can
> rely on implementation details.
That is in stark contrast with your usual coding style, which tends to
place checks and assertions where they are not always needed. Could
it be that you underestimate the damage that broken non-ASCII byte
stream can cause Emacs if inserted directly into a buffer or a string?
Doing so will usually cause Emacs die a horrible death quite soon,
because code that processes buffer or string text has no defenses
against such calamities.
- Re: JSON/YAML/TOML/etc. parsing performance, (continued)
- Re: JSON/YAML/TOML/etc. parsing performance, Eli Zaretskii, 2017/10/06
- Re: JSON/YAML/TOML/etc. parsing performance, Philipp Stephani, 2017/10/08
- Re: JSON/YAML/TOML/etc. parsing performance, Paul Eggert, 2017/10/09
- Re: JSON/YAML/TOML/etc. parsing performance, Philipp Stephani, 2017/10/29
- Re: JSON/YAML/TOML/etc. parsing performance, Philipp Stephani, 2017/10/29
- Re: JSON/YAML/TOML/etc. parsing performance, Philipp Stephani, 2017/10/08
- Re: JSON/YAML/TOML/etc. parsing performance, Eli Zaretskii, 2017/10/09
- Re: JSON/YAML/TOML/etc. parsing performance, Philipp Stephani, 2017/10/08
- Re: JSON/YAML/TOML/etc. parsing performance, Eli Zaretskii, 2017/10/08
- Re: JSON/YAML/TOML/etc. parsing performance, Philipp Stephani, 2017/10/08
- Re: JSON/YAML/TOML/etc. parsing performance,
Eli Zaretskii <=
- Re: JSON/YAML/TOML/etc. parsing performance, Philipp Stephani, 2017/10/29
- Re: JSON/YAML/TOML/etc. parsing performance, Paul Eggert, 2017/10/09
Re: JSON/YAML/TOML/etc. parsing performance, Eli Zaretskii, 2017/10/01