From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Bausch Subject: Re: another example of org being slow, with some analysis Date: Fri, 19 Jun 2015 08:34:15 +0200 Message-ID: <87381ow6jc.fsf@gelnhausen.dvs.informatik.tu-darmstadt.de> References: <87ioalhtfa.fsf@delle7240.chemeng.ucl.ac.uk> <87vbekc1iy.fsf@alphaville.usersys.redhat.com> <877fr0w78d.fsf@gelnhausen.dvs.informatik.tu-darmstadt.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5psk-0005C9-Lc for emacs-orgmode@gnu.org; Fri, 19 Jun 2015 02:34:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5psZ-0005cJ-RJ for emacs-orgmode@gnu.org; Fri, 19 Jun 2015 02:34:26 -0400 Received: from lnx500.hrz.tu-darmstadt.de ([130.83.156.225]:42744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5psZ-0005aK-Hf for emacs-orgmode@gnu.org; Fri, 19 Jun 2015 02:34:19 -0400 In-Reply-To: <877fr0w78d.fsf@gelnhausen.dvs.informatik.tu-darmstadt.de> (Daniel Bausch's message of "Fri, 19 Jun 2015 08:19:14 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Dokos Cc: emacs-orgmode@gnu.org Daniel Bausch writes: > I think it actually is not an org-mode problem but depends on how > (count-lines 1 (point)) works, as it is using regex searches for the > line endings. I can imagine that the regex parser for utf-8 can be > inefficient. I just looked again at Eric's profile output. Why does count-lines not show up there at all? Could it be goto-char, bolp, or even save-excursion instead? I suspected count-lines because it is really doing heavy lifting. Regards, Daniel --=20 MSc. Daniel Bausch Research Assistant (Computer Science) Technische Universit=C3=A4t Darmstadt http://www.dvs.tu-darmstadt.de/staff/dbausch