help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: garbace collection of point-markers


From: Kevin Rodgers
Subject: Re: garbace collection of point-markers
Date: Fri, 31 Jan 2003 12:02:49 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Stefan Kamphausen wrote:

when I call (point-marker) and don't store the return value in a
variable will that marker be removed at the next garbage collection?
Or does the DONT-COPY-P argument achieve this?

I need this for a routine where I use lots of temporary markers.

Besides garbage collection, you may want to consider the performance
implications:

|File: elisp,  Node: Overview of Markers,  Next: Predicates on Markers,  Up: 
Markers
...
|  Insertion and deletion in a buffer must check all the markers and
|relocate them if necessary.  This slows processing in a buffer with a
|large number of markers.  For this reason, it is a good idea to make a
|marker point nowhere if you are sure you don't need it any more.
|Unreferenced markers are garbage collected eventually, but until then
|will continue to use time if they do point somewhere.

--
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;";>Kevin Rodgers</a>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]