[TxMt] Find/Replace Speed (inserting of many \n)
Charilaos Skiadas
skiadas at hanover.edu
Fri Mar 23 12:23:11 UTC 2007
On Mar 23, 2007, at 4:52 AM, Hans-Joerg Bibiko wrote:
> Hi,
>
> I have a tiny suggestion.
>
> For me it is often the case that I have to replace, let's say hex
> \x0B (TAB INDENTION), with '\n'. If I do it using TM's Find/Replace
> dialog it takes several minutes for a file with 400 lines and,
> let's say 4000 occurrences of '\x0B'. Furthermore TM occupies a lot
> of my CPUs.
>
> If I do the same by using the 'Filter-Command' with e.g. 'perl -npe
> s/\x0B/\n/g' it only takes a few seconds.
>
> I could image that the speed problem arises if the Find/Replace
> routine has to insert '\n'.
Yes the problem has to do with the new lines created being processed
by the parser immediately. Unless I am mistaken though, this will be
fixed in 2.0, so if that's the case then I wouldn't expect any
changes before 2.0.
> Hans
Haris Skiadas
Department of Mathematics and Computer Science
Hanover College
More information about the textmate
mailing list