From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: Knowing where a function has been used (bis) [Was: Re: Optimising Elisp code] Date: Fri, 12 Oct 2018 16:03:24 -0700 Message-ID: <87lg72ojib.fsf@ericabrahamsen.net> References: <638fb7dc-6fc5-4645-8793-97a00038a3a8@googlegroups.com> <8hxojvzzzzzz.m4h.xxuns.g6.gal@portable.galex-713.eu> <20181006192457.GB7368@tuxteam.de> <86lg79yl54.fsf@zoho.com> <86d0slrb4h.fsf@zoho.com> <86d0sknoud.fsf@zoho.com> <86tvlvmxtz.fsf@zoho.com> <86woqprcdb.fsf@zoho.com> <8636tcl05a.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1539385323 17568 195.159.176.226 (12 Oct 2018 23:02:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2018 23:02:03 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 13 01:01:59 2018 Return-path: Envelope-to: geh-help-gnu-emacs@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 1gB6RS-0004PB-Gb for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Oct 2018 01:01:58 +0200 Original-Received: from localhost ([::1]:43015 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gB6TY-0002i4-Ml for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Oct 2018 19:04:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gB6T5-0002ho-CF for help-gnu-emacs@gnu.org; Fri, 12 Oct 2018 19:03:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gB6T0-0006tX-5X for help-gnu-emacs@gnu.org; Fri, 12 Oct 2018 19:03:39 -0400 Original-Received: from [195.159.176.226] (port=35207 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gB6Sz-0006sj-Ix for help-gnu-emacs@gnu.org; Fri, 12 Oct 2018 19:03:34 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gB6Qp-0003b2-Ff for help-gnu-emacs@gnu.org; Sat, 13 Oct 2018 01:01:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:+txrz14Qc2TKMLXew+tKp+G8MyI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118259 Archived-At: Barry Margolin writes: > In article <8636tcl05a.fsf@zoho.com>, Emanuel Berg > wrote: > >> Barry Margolin wrote: >> >> > I doubt that anyone makes decision about >> > whether to split large functions into >> > separate functions based on the overhead of >> > function calling. >> >> This is what the Gnus people told me when >> I suggested not writing functions that are >> longer and deeper than a novel by Dostoevsky - >> they said, ~"Gnus is slow, Elisp is slow, >> making neat modules of those defuns will make >> it even slower." > > Sounds like a bullshit rationalization. The real reason is probably that > refactoring is a PITA. As someone who's currently trying to refactor Gnus (replacing obarray hashtables with actual hashtables), I can confirm that it is indeed a PITA.