PreviousNextTracker indexSee it online !

(68/231) 2500959 - LineFilter breaks Marker

Hi, the LineFilter macro do not keep the Markers.
The reason is that it rewrite entirely the buffer. I think it could be faster if it would change the Buffer instead and use Segment

Submitted kpouer - 2009-01-12 - 08:51:14z Assigned nobody
Priority 5 Category macros
Status Open Group None
Resolution None Visibility No


2009-01-17 - 12:30:03z
Attached is the macro with the following changes:

1. When deleting lines Markers are preserved now.
This is achieved by removing every matched line via buffer.remove(), which seems to take some time. This action is now much slower (about factor 5)!

2. Using Segment instead of String (but can't see a performance push).

Could someone take a look at this please, especially at the deleting performance? Thanks.

File Added: Line_Filter.bsh


2009-01-17 - 12:30:03z