Deleting Data Woefully Slow
Alex Tweedly
alex at tweedly.net
Fri Mar 26 06:13:36 EDT 2010
Mark Wieder wrote:
> Alex-
>
> Thursday, March 25, 2010, 5:57:48 PM, you wrote:
>
>
>> delete line -1 requires
>> search for every CR (i.e. scan every char in the whole large
>> piece of data)
>> adjust some pointer to truncate
>>
>
> Not necessarily. See my response to Richard. I'd find the end of the
> text and work my way back.
>
>
You're right Mark. When I said "requires" I should have said "currently
does" - or even "appears to currently do" :-)
It looks like it would be a worthwhile change to use rindex (or
equivalent) for all references to "line -N".
-- Alex.
More information about the use-livecode
mailing list