From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: indirect threading for bytecode interpreter Date: Fri, 18 Sep 2009 12:15:41 -0700 (PDT) Message-ID: <200909181915.n8IJFfw7006915@godzilla.ics.uci.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253301465 2666 80.91.229.12 (18 Sep 2009 19:17:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 19:17:45 +0000 (UTC) Cc: Emacs development discussions To: tromey@redhat.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 18 21:17:37 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Moixb-00064x-Cr for ged-emacs-devel@m.gmane.org; Fri, 18 Sep 2009 21:17:35 +0200 Original-Received: from localhost ([127.0.0.1]:36568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Moixa-0007ek-B8 for ged-emacs-devel@m.gmane.org; Fri, 18 Sep 2009 15:17:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoixU-0007dD-Kz for emacs-devel@gnu.org; Fri, 18 Sep 2009 15:17:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoixO-0007a8-GK for emacs-devel@gnu.org; Fri, 18 Sep 2009 15:17:26 -0400 Original-Received: from [199.232.76.173] (port=44456 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoixO-0007a2-C1 for emacs-devel@gnu.org; Fri, 18 Sep 2009 15:17:22 -0400 Original-Received: from barrelv2.ics.uci.edu ([128.195.1.114]:48452) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1MoixN-0007C0-EE for emacs-devel@gnu.org; Fri, 18 Sep 2009 15:17:21 -0400 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n8IJFgeU024565; Fri, 18 Sep 2009 12:15:42 -0700 (PDT) Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n8IJFfw7006915; Fri, 18 Sep 2009 12:15:41 -0700 (PDT) In-Reply-To: (Tom Tromey's message of "Thu, 17 Sep 2009 10:46:44 -0600") Original-Lines: 15 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n8IJFgeU024565 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:115469 Archived-At: Tom Tromey writes: > This patch implements indirect threading for the Emacs bytecode > interpreter. It uses a GNU C extension, and falls back to the current > switch-based code if Emacs is compiled with some other compiler. > > This speeds up the bytecode interpreter a bit. On my benchmark, it > improved the overall time between 4-7% (lots of noise in the runs). > That isn't bad when you consider that Fbyte_code was the 3rd biggest > time user (the first two being re_match_2_internal and mark_object). If your patch applies to emacs-22.3 (quite likely), and you are curious, you might want to test the performance there. The overhead of mark_object should be lower in that version (it's higher in 23 because of the way charsets are represented).