unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* JSON encoding and decoding performance
@ 2017-04-15  5:35 Clément Pit--Claudel
  2017-04-15  7:59 ` Eli Zaretskii
  2017-04-20 10:45 ` Philipp Stephani
  0 siblings, 2 replies; 7+ messages in thread
From: Clément Pit--Claudel @ 2017-04-15  5:35 UTC (permalink / raw)
  To: Emacs developers

[-- Attachment #1: Type: text/plain, Size: 774 bytes --]

Hi emacs-devel,

I'm running into performance issues with JSON encoding and decoding.  I have a language mode whose eldoc function makes a call to a language server running as a subprocess, and small lags tend to be visible when moving quickly around the buffer.  Profiling suggests that roughly 25 percent of the time is spent encoding and decoding JSON strings.

Would there be strong objections to supporting a C JSON library in addition to the current ELisp implementation?  This was suggested at one point in https://lists.gnu.org/archive/html/bug-gnu-emacs/2015-03/msg00770.html .  It would be similar in spirit to supporting libxml-parse-region along xml-parse-region, and it could provide nice speed boosts to json-heavy ELisp programs.

Cheers,
Clément.


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 1979 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-04-20 10:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-15  5:35 JSON encoding and decoding performance Clément Pit--Claudel
2017-04-15  7:59 ` Eli Zaretskii
2017-04-16 15:43   ` Clément Pit--Claudel
2017-04-16 17:05     ` Mark Oteiza
2017-04-20 10:50       ` Philipp Stephani
2017-04-16 17:12     ` Eli Zaretskii
2017-04-20 10:45 ` Philipp Stephani

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).