From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: I created a faster JSON parser Date: Fri, 08 Mar 2024 14:03:55 +0200 Message-ID: <861q8l0w2c.fsf@gnu.org> References: <87a5n96mb5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28814"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?G=E9za_Herman?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 08 13:05:47 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1riYyx-0007IT-0H for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Mar 2024 13:05:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riYxt-0003FE-AL; Fri, 08 Mar 2024 07:04:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1riYxR-0003AD-Hd for emacs-devel@gnu.org; Fri, 08 Mar 2024 07:04:16 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1riYxM-0001vE-GI; Fri, 08 Mar 2024 07:04:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=fiH58dJOwJvwQwU6gXhzzeyCcXQQpV/7m2FdhHG1by8=; b=kLYmx210kikcyZqAanw1 z9O//Dc8eIxHXWGyj+3BdQGf7Okvdf48I3vkjglNRrKgUrFkNw5enagHX6s7yiezV3BiLqKKcZZv7 Cz+oxsJD8IWKxD9zR1yVn7M5IycNQ468+P4KU3qNnra3qJRXQp213beeqEsT2JeCYRvIrwQqKd4I8 b9Uw8+Uu1rHgTEpSGLf+Ay5iVPdSWXgT0o90usV47bNoaH8sNONqZ0suGt68e9NrMMduYcjD8AqDJ +lMtfKHJAf+vddTlSzC5odI2VAA2XKEnHdD3mVKHwDQgNH9FQ4NvDZXTPzvPEvZvbxtDPIrJS3inL Axh2VPVMelj3uA==; In-Reply-To: <87a5n96mb5.fsf@gmail.com> (message from Herman, =?iso-8859-1?Q?G=E9za?= on Fri, 08 Mar 2024 11:27:16 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:316899 Archived-At: > From: Herman, Géza > Date: Fri, 08 Mar 2024 11:27:16 +0100 > > This parser runs 8-9x faster than the jansson based parser on my > machine (tested on clangd language server messages). How does it do that? Can you summarize the main ideas of your implementation, which make it so much faster? Thanks.