From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: Emacs Lisp JIT Compiler Date: Mon, 13 Aug 2018 08:23:02 -0700 Message-ID: References: <87va8ej4o1.fsf@tromey.com> <87in4e47my.fsf@tromey.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1534173685 8697 195.159.176.226 (13 Aug 2018 15:21:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 13 Aug 2018 15:21:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 13 17:21:21 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fpEen-00029b-3s for ged-emacs-devel@m.gmane.org; Mon, 13 Aug 2018 17:21:21 +0200 Original-Received: from localhost ([::1]:40025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpEgt-0004BV-OM for ged-emacs-devel@m.gmane.org; Mon, 13 Aug 2018 11:23:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpEgY-00042c-RU for emacs-devel@gnu.org; Mon, 13 Aug 2018 11:23:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fpEgV-0001p3-Jv for emacs-devel@gnu.org; Mon, 13 Aug 2018 11:23:10 -0400 Original-Received: from mail-pl0-x22a.google.com ([2607:f8b0:400e:c01::22a]:33915) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fpEgV-0001ot-C1 for emacs-devel@gnu.org; Mon, 13 Aug 2018 11:23:07 -0400 Original-Received: by mail-pl0-x22a.google.com with SMTP id f6-v6so7026777plo.1 for ; Mon, 13 Aug 2018 08:23:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=B+fp+HF4jN7Yw8oL7iBKkX3jY5v2iWrwjxYo5hAUsGo=; b=bfE4auF3Jatp+qohYDYGRHNJfJWa12gMqdFWKlYX4ZMWO8CRrhCmO4+XkFLNfQTenN xocw7GDoGzkm+mcuOKJ5z8PlDjNC0+M7LcFWBYnttCX56hRWcTB5i2BDtpuqohPbtQ43 6I+MFQ6iTLT6EB/bxaPP8aXxHNSXbTxKKgydWTfRrznaPe9WU5+OFQzo0NPL9GnabB/J jFlvLCNq3vunvquWwfkL4jK43n+I1ZTpZDi2A0XdSPftoD226vh0HCC3bOUwCk3W5KWO F/mqjjhvOzTxSP1YyzFd8CVpzpg5veB/6y9/AZNz3KyiCRsceWyxjpV5IHF9ky5Jxjg2 H6/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=B+fp+HF4jN7Yw8oL7iBKkX3jY5v2iWrwjxYo5hAUsGo=; b=ACYqpncMXBICl4PdYxEptXt+Y6VT0gAOiVwFdSEPf8x54pCfahCxqxRcx8iNGDcibM DXwlIm5ivJpfI4YlS9lb0w4g3khoup39Dr3FdRdlqKRs/n+tWeFjFrHOXCfrIGXVYC6X yP8R/56bwx7yiWtV2YKcMAx4eea/uroOpO72zZAZv08Dcx3WZ65jjJy+ENyba7Z4I9PR WbuLkjMIsckBYLo/B+uL25aV1JFzNfbkV20aR0MTd6yD2QZoM56mtEj5RVsnfztbJ8fx OjS2XlyPxMqBA1Qque8o+oPkSQsK/wULoUqaa2UI79NGp22z5SiNlYALYhxmOTbLPxhr upOA== X-Gm-Message-State: AOUpUlHYRhc5IszKHymbzB/kW0FRf56eMtqxRRsgZ0yjq025+oiiB6lW /cXnfv+qQeGpWb7pvliDTMv5n2xMNdI= X-Google-Smtp-Source: AA+uWPz25W1dao0ZDpFFNYezB+MqGvq6+Ggd0PrAexZmHAAW31XoXMhl/pLr2bxfHg8Sp3RyfiQN0A== X-Received: by 2002:a17:902:7586:: with SMTP id j6-v6mr17059381pll.295.1534173785519; Mon, 13 Aug 2018 08:23:05 -0700 (PDT) Original-Received: from retriever.mtv.corp.google.com ([100.98.8.133]) by smtp.gmail.com with ESMTPSA id m15-v6sm31335208pfk.149.2018.08.13.08.23.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Aug 2018 08:23:03 -0700 (PDT) Original-Received: by retriever.mtv.corp.google.com (Postfix, from userid 13930) id 7D2A71A0C9E; Mon, 13 Aug 2018 08:23:02 -0700 (PDT) In-Reply-To: <87in4e47my.fsf@tromey.com> (Tom Tromey's message of "Mon, 13 Aug 2018 09:18:45 -0600") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::22a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:228488 Archived-At: Tom Tromey writes: Good to know - -asked because of the reference in your original note to "redefined functions" (speaking from memory)>>>>>> "T" == T V Raman writes: > > T> Will it work with adviced functions? > > Yes. The JIT works by adding another slot to the bytecode object. > This slot holds the JIT-related data, like the compiled function. > So, things like advice don't affect the way it operates. > > Writing this out made me remember another possible issue with the JIT: > because it works based on the bytecode object, when a closure is made > with make-byte-code, the JIT will compile each such closure separately. > It would be possible to, instead, have it compile a closure once; but at > some cost to the generated code. > > Tom > -- Id: kg:/m/0285kf1