From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Relative performance of text-properties search functions Date: Thu, 23 May 2013 14:16:47 +0200 Message-ID: <87fvxdsxg0.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369311442 29897 80.91.229.3 (23 May 2013 12:17:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 May 2013 12:17:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 23 14:17:17 2013 Return-path: Envelope-to: geh-help-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 1UfUSK-0000gY-NI for geh-help-gnu-emacs@m.gmane.org; Thu, 23 May 2013 14:17:16 +0200 Original-Received: from localhost ([::1]:57689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfUSI-0000eF-84 for geh-help-gnu-emacs@m.gmane.org; Thu, 23 May 2013 08:17:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfUS6-0000dx-L3 for help-gnu-emacs@gnu.org; Thu, 23 May 2013 08:17:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfUS5-0002R2-4w for help-gnu-emacs@gnu.org; Thu, 23 May 2013 08:17:02 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:59480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfUS4-0002Qq-VH for help-gnu-emacs@gnu.org; Thu, 23 May 2013 08:17:01 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UfUS4-0000XI-08 for help-gnu-emacs@gnu.org; Thu, 23 May 2013 14:17:00 +0200 Original-Received: from e178190243.adsl.alicedsl.de ([85.178.190.243]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 May 2013 14:16:59 +0200 Original-Received: from tjolitz by e178190243.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 May 2013 14:16:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e178190243.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:u+DKCjCgv//TSZTk4fPLaEHfx6A= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90994 Archived-At: Hi List, I'm just discovering Emacs text-properties, and I wonder what would be the right thing to do (from a performance point of view) in a case where at the end of each outline (or org-mode) headline in a buffer a replacing display spec should be inserted, and then updated many times afterwards (either on user demand or via a visibility-change hook): 1. use 'outline-next-visible-heading' and 'move-end-of-line' to find the specs and then insert/modifify them? 2. use Emacs text-properties search functions to find the specs? I would guess its (1), but would like to reassure myself by asking this question. -- cheers, Thorsten