From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wojciech Meyer Newsgroups: gmane.emacs.devel Subject: Re: Compiling Elisp to a native code with a GCC plugin Date: Wed, 15 Sep 2010 13:10:27 +0100 Message-ID: References: <87bp805ecr.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1284552650 12048 80.91.229.12 (15 Sep 2010 12:10:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Sep 2010 12:10:50 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 15 14:10:47 2010 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.69) (envelope-from ) id 1Ovqp4-0000dR-4h for ged-emacs-devel@m.gmane.org; Wed, 15 Sep 2010 14:10:46 +0200 Original-Received: from localhost ([127.0.0.1]:39117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ovqp3-00010k-Kt for ged-emacs-devel@m.gmane.org; Wed, 15 Sep 2010 08:10:45 -0400 Original-Received: from [140.186.70.92] (port=33574 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ovqor-0000wy-P9 for emacs-devel@gnu.org; Wed, 15 Sep 2010 08:10:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ovqom-00011l-EI for emacs-devel@gnu.org; Wed, 15 Sep 2010 08:10:33 -0400 Original-Received: from mail-qy0-f169.google.com ([209.85.216.169]:58069) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovqom-00011g-B2 for emacs-devel@gnu.org; Wed, 15 Sep 2010 08:10:28 -0400 Original-Received: by qyk8 with SMTP id 8so4166412qyk.0 for ; Wed, 15 Sep 2010 05:10:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=Y1Ata0tDudVEbh8jq61yN0nfvl7Rykq6bER1bGUh1/0=; b=TmHhJG+7zb6VQByYY7BequPUchlHuo1yz0ONrhT2ehKXwKkbKvf3B51vBuSJipAH6F sLsn1zT41MBl1+902Z1LIKTIrLk8d9N9i/FAP1U6foyDWm6OZrhGdtSx7Xk+t/02BprQ rz03bmqKCDN6DdBeRKCndBPCSrJbnETs2MyZ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=YFEjGOmJWyHJGXybeOShs6whaqmqyevkvyoLmL3HOiB6TLrCYXH+pDbucBpYsjExT8 Uc0jcKk47Mpsx8BXWo8H6qkqQVQUfT52ysQMpAsBYYSh6qH02DKpNLzUIR7Z/2fZLF/g V75hRCyr/C52dbHlREjEsf2qbnlMRELYsBtgk= Original-Received: by 10.224.106.149 with SMTP id x21mr1036360qao.16.1284552627894; Wed, 15 Sep 2010 05:10:27 -0700 (PDT) Original-Received: by 10.229.92.9 with HTTP; Wed, 15 Sep 2010 05:10:27 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:130203 Archived-At: On Wed, Sep 15, 2010 at 12:41 PM, Andreas Schwab wrote: > Leo writes: > >> On 2010-09-14 20:32 +0100, Tom Tromey wrote: >>> As I recall, in my profiles, the GC and the regexp matcher were more >>> costly the bytecode interpreter (though of course this is >>> workload-dependent). >> >> Regarding regexp matcher, do you know if performance will be improved by >> using pcre? > > You can't just switch to other regexp engines because they don't offer > all Emacs features. We could transform syntax from Elisp like to pcre using string substitution on the fly. For the features not present in pcre just use different set of functions, regexp is self contained it is just a string. Compiling regexp to a native code using gcc or GNU lightning (or any other framework), could also be a solution. > Andreas. Wojciech