From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Herman=2C_G=C3=A9za?= Newsgroups: gmane.emacs.devel Subject: Re: I created a faster JSON parser Date: Sat, 09 Mar 2024 15:00:09 +0100 Message-ID: <87frwzmrg9.fsf@gmail.com> References: <87a5n96mb5.fsf@gmail.com> <861q8l0w2c.fsf@gnu.org> <878r2s99j0.fsf@gmail.com> <86y1aszxom.fsf@gnu.org> <874jdg97xm.fsf@gmail.com> <86ttlgzuew.fsf@gnu.org> <875xxw3f3a.fsf@gmail.com> <86plw4zo9u.fsf@gnu.org> <87edcktumt.fsf@gmail.com> <86cys4zec7.fsf@gnu.org> <87a5n8to8m.fsf@gmail.com> <86a5n7zykr.fsf@gnu.org> <874jdfocst.fsf@gmail.com> <86bk7ny2d7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18494"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?Q?G=C3=A9za?= Herman , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 09 15:05:48 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 1rixKe-0004aP-6V for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Mar 2024 15:05:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rixK0-000701-5N; Sat, 09 Mar 2024 09:05:08 -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 1rixJu-0006y4-Gd for emacs-devel@gnu.org; Sat, 09 Mar 2024 09:05:02 -0500 Original-Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rixJr-00011u-OA; Sat, 09 Mar 2024 09:05:01 -0500 Original-Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-513382f40e9so3795469e87.2; Sat, 09 Mar 2024 06:04:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709993097; x=1710597897; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:references:from:to:cc:subject:date:message-id :reply-to; bh=OJ7uFvst9cQuCS3z6Q20E0NYmsYODby0il/4BHb4mDo=; b=kqOHzG52hEItNczCFUS3YTA4XX+n75wobNPBjAh/yr6LinyrwIlUp+ikNmeDB5Pnm5 cWuqTnJxqbwgR36pSNTaTfOIuPzEEKVuhlvsJ6ckmCsuom264/W/9tcagpPCbd1LrYQl ov8zjBEw9R2gRhZejk0v7FS8Mm/XrgnO0AoXYT08MiQLEGqX6ai1rp0gbcPF9y+6sTcI Rd+AjrMuRTPBBfAZBXaVitX404Dj8opY9ENL2r25hvCvagCFLpp1f+pKaQ8JRa/M0Lbu 8EQWU31SOfW8ARzRmZt9EtvwqEQNqPErS4mwV2c/YkZg+09dp/MgiP1VEV8Bz/o/epJQ dNtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709993097; x=1710597897; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:references:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=OJ7uFvst9cQuCS3z6Q20E0NYmsYODby0il/4BHb4mDo=; b=EbUamxb54Ntelegso/S3fSuhNcWhGxSDVFfYeprPGI2USBskhguM80iHiF7zUFJYYW V1TfGe+VamHc9d1Iw6WeE3pLZZcTmoOoDFE/0Um2yQbeupuXhaubsKOtfhFFgtla3iGu qmhNac6Pxe9hy77ePjv8G1wxyYeA11Tc7SfbLql3LCbQ9zoamRroXnk5HL9L3hUUpe8d de46omh6a/zMRyGHuDuaNiMFUb1gfUN8nWDjTtHDH6zbGJLcqHj+AY25fYPEs5sPxpD+ e4dCe6TqxRsBIbDFC4D78Dkmf6zWmd9ZReKQ2zm4U4vJTeqJmQ5S9PaKM0mbCUP69cyw 7aVg== X-Forwarded-Encrypted: i=1; AJvYcCV15j6ji+3bIQQvuqSnECa1KFBUlML2zeirv+33B5hRwKTyLzTx0Xv8ZrjSe77n3x2+6eoDJuyEjm5BHNRQ8yvLMt0K X-Gm-Message-State: AOJu0YyG88k5BLFiCWKeeK7jVUI5fUwWKTyyGcX6E9+8gK7oo53H3nFK ipIwl4iG2zTtDQuR3zNFwP7KXnDiJB5JPfrOzIKm+JZrpZzpDzm4bszSV7uv X-Google-Smtp-Source: AGHT+IFCeA5omkbtuzEo7ifjs2U+g2hxd4nvAMY71Awv8d/yWzWwQKcKj2NnEAWA/Jro1gGzAaXYHg== X-Received: by 2002:a19:641e:0:b0:513:82e2:4193 with SMTP id y30-20020a19641e000000b0051382e24193mr1198120lfb.10.1709993096322; Sat, 09 Mar 2024 06:04:56 -0800 (PST) Original-Received: from localhost (netacc-gpn-4-138-211.pool.yettel.hu. [84.224.138.211]) by smtp.gmail.com with ESMTPSA id jg2-20020a05600ca00200b004131683c268sm5838441wmb.27.2024.03.09.06.04.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 06:04:55 -0800 (PST) In-reply-to: <86bk7ny2d7.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=geza.herman@gmail.com; helo=mail-lf1-x12d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:316947 Archived-At: Eli Zaretskii writes: >> From: Herman, G=C3=A9za >> Cc: G=C3=A9za Herman , >> emacs-devel@gnu.org >> Date: Sat, 09 Mar 2024 12:08:54 +0100 >> >> How can we proceed further? This is the current state of the >> patch: >> https://github.com/geza-herman/emacs/commit/ce5d990776a1ccdfd0b6d9c4d5e5= e5df55245672.patch > > What about removing the dependency on jansson altogether? Unless it also turns out to be a serious bottleneck, I'm not too=20 motivated to work on that. Based on Po Lu's comments, I added some parentheses, here's the=20 latest version: https://github.com/geza-herman/emacs/commit/5e3db3fb06b6393fd1b5d5fd967062e= c1909e94a.patch (I reformatted the code using indent-region, and put parentheses=20 where it didn't used the correct indentation. I'm not sure=20 whether this method finds all the cases, but as the intent of=20 these extra parentheses is to have correct indentation, I think=20 this approach more-or-less OK)