emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String encoding in json.c


From: Eli Zaretskii
Subject: Re: String encoding in json.c
Date: Mon, 25 Dec 2017 18:21:13 +0200

> From: Dmitry Gutov <address@hidden>
> Date: Sun, 24 Dec 2017 22:48:17 +0200
> Cc: address@hidden
> 
> > The main purpose of Emacs is to be an efficient editor, so if we care
> > about the slow-down of code conversions, we should first and foremost
> > speed up reading and writing files.  JSON conversion, with all due
> > respect to them, are not the main business for us, and I'm not even
> > sure JSON objects will frequently be as large as files our users visit
> > all the time.
> 
> FWIW, a significant use case for json.el is encoding a structure 
> containing the whole contents of the current buffer as one of the values 
> (several protocols for external code completion tools use this).

OK, but I presume the size of such buffers is rarely more than 1
MByte, say?  Files we visit are quite frequently much larger.  Which
is why I say that if the speed of en/decoding is crucial, we should
first and foremost work on speeding up file I/O.



reply via email to

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