From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Fast JSON codec based on YAJL Date: Mon, 14 Jan 2013 21:26:46 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358216832 1209 80.91.229.3 (15 Jan 2013 02:27:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jan 2013 02:27:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: Julian Scheid Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 15 03:27:30 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TuwFJ-0003KJ-Q3 for ged-emacs-devel@m.gmane.org; Tue, 15 Jan 2013 03:27:25 +0100 Original-Received: from localhost ([::1]:48850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuwF3-00047J-FH for ged-emacs-devel@m.gmane.org; Mon, 14 Jan 2013 21:27:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuwF0-00047A-GP for emacs-devel@gnu.org; Mon, 14 Jan 2013 21:27:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TuwEz-0002Ga-MX for emacs-devel@gnu.org; Mon, 14 Jan 2013 21:27:06 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:62698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuwEz-0002GV-Ib for emacs-devel@gnu.org; Mon, 14 Jan 2013 21:27:05 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtkGAG6Zu09FpZpV/2dsb2JhbABEgXuyFoEIghUBAQQBViMFCws0EhQYDSSIHAW6CZBEA4hCmnGBWIMH X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="212565383" Original-Received: from 69-165-154-85.dsl.teksavvy.com (HELO pastel.home) ([69.165.154.85]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 14 Jan 2013 21:27:03 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id ED77D5927F; Mon, 14 Jan 2013 21:26:46 -0500 (EST) In-Reply-To: (Julian Scheid's message of "Tue, 15 Jan 2013 01:36:04 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156368 Archived-At: > A few unscientific benchmarks suggest that YAJL (via my interface) is > roughly 5 to 25 times as fast as byte-compiled json.el, on average about > an order of magnitude faster. Memory usage is about on par. You mean that json.elc is only 5 to 25 times slower than a C implementation? I actually expected significantly worse. Stefan