[PD] Fastest way to find lines in text file

Jack jack at rybn.org
Wed Mar 22 13:13:20 CET 2017


:) I remenmber that gedit was buggy...

Your proposition with until/textfile/select is slower than msgfile. (200
ms vs 40 ms with [msgfile] and its "find" method).

But what you mean by "you just need to add a counter" ?
++

Jack



Le 22/03/2017 à 09:47, cyrille henry a écrit :
> few years ago, i used "until / textfile / select" for search and replace
> in huge text because gedit was to slow.
> i'll do it again if I had to deal with this kind of texts.
> 
> for your application, you just need to add a counter.
> c
> 
> 
> Le 21/03/2017 à 19:14, Jack a écrit :
>> Hello,
>>
>> I need to find every lines of a textfile containing a word.
>> The textfile has 2.539.592 lines.
>> Now, i am using [msgfile] from zexy because i can find a line, skip a
>> line and find again ... until the end of the textfile.
>> But, i am wondering if there is an other object (in an other library)
>> faster, specialized in this work ?
>> Thanx.
>> ++
>>
>> Jack
>>
>>
>> _______________________________________________
>> Pd-list at lists.iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> https://lists.puredata.info/listinfo/pd-list
>>
> 
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list




More information about the Pd-list mailing list