From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#15841: Display bugs with cache-long-lines non-nil Date: Thu, 14 Nov 2013 00:45:17 +0100 Message-ID: <87a9h7c1de.fsf@web.de> References: <871u2xf9st.fsf@gmail.com> <9jiow9uhoa.fsf@fencepost.gnu.org> <87wqkopylw.fsf@gmail.com> <87bo20fh3h.fsf@web.de> <834n7q95d5.fsf@gnu.org> <87r4aqww3j.fsf@nbtrap.com> <83r4aq3s4r.fsf@gnu.org> <83ppqa3rim.fsf@gnu.org> <87eh6o6rvm.fsf@web.de> <83y54w2jo1.fsf@gnu.org> <87li0vppwz.fsf@web.de> <83li0u3o29.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1384386374 4086 80.91.229.3 (13 Nov 2013 23:46:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Nov 2013 23:46:14 +0000 (UTC) Cc: 15841@debbugs.gnu.org, nbtrap@nbtrap.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 14 00:46:17 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vgk8X-0008PH-KC for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Nov 2013 00:46:17 +0100 Original-Received: from localhost ([::1]:51517 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgk8X-0001Ll-73 for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Nov 2013 18:46:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgk8O-0001LF-Mt for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2013 18:46:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vgk8J-0008TU-6Y for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2013 18:46:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgk8J-0008TP-2K for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2013 18:46:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vgk8I-0006XB-NC for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2013 18:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Nov 2013 23:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15841 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15841-submit@debbugs.gnu.org id=B15841.138438633125070 (code B ref 15841); Wed, 13 Nov 2013 23:46:02 +0000 Original-Received: (at 15841) by debbugs.gnu.org; 13 Nov 2013 23:45:31 +0000 Original-Received: from localhost ([127.0.0.1]:50836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vgk7n-0006WG-BV for submit@debbugs.gnu.org; Wed, 13 Nov 2013 18:45:31 -0500 Original-Received: from mout.web.de ([212.227.15.4]:64868) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vgk7j-0006Vw-At for 15841@debbugs.gnu.org; Wed, 13 Nov 2013 18:45:28 -0500 Original-Received: from drachen.dragon ([90.187.136.19]) by smtp.web.de (mrweb102) with ESMTPA (Nemesis) id 0MOilO-1VkbTV1ipK-006AiG for <15841@debbugs.gnu.org>; Thu, 14 Nov 2013 00:45:20 +0100 In-Reply-To: <83li0u3o29.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 11 Nov 2013 18:23:10 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V03:K0:zglTIo299q5Wb6Nadv0ZENcCaw9OCB3fosmaa4M1mhK0FMPV2W5 qbS5qsLDErNTVGoKbdlXHpiumpzK1fOQIjs5adJEBipSQmuCC5zYrdpjwLuFb9g2WgJbJS2 3Dr/D6YwKNOO9A744nAmDwi6i4X4SfORcjTDarJhsQ9dRP6R0wn3y6WaXc1b90QYrt4JlAY vsji4A0VTqg8qmCDfMSvg== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:80397 Archived-At: Eli Zaretskii writes: > > From: Michael Heerdegen > > Cc: 15841@debbugs.gnu.org, nbtrap@nbtrap.com > > Date: Mon, 11 Nov 2013 04:39:56 +0100 > > > > The culprit was my own code: it placed myriads of invisible overlays > > with no properties into the buffer. Under these extreme circumstances, > > `line-number-at-pos' indeed gets extremely slow at the end of my 10000 > > lines buffer: one invocation needs over a second. I saw that with elp > > as well as with profiler. Setting `cache-long-scans' to nil (or > > removing the overlays) cures this. > > Can you show some simple enough code that puts so many overlays, and > has this effect? It sounds like some optimization is in order. Sorry, I did not find an easy test case. I tried to simplify the essence of what my code does, but the effect didn't occur. Seems that lots of different things must come together to provoke this symptom. Given the fact that my code was really broken, I don't think it's worth the time to follow this up. It would cost me many hours to compile some test code for emacs -Q. Or do you think it would be worth it? If you think it could be very important, I would do it, but it would be very time intensive. My code works well now with `cache-long-scans' t after the right fixes, btw. Regards, Michael.