LC7 and 8 - Non responsive processing large text files

J. Landman Gay jacque at hyperactivesw.com
Thu Apr 14 14:47:27 EDT 2016


On 4/14/2016 12:27 PM, Roland Huettmann wrote:
> There is a work-around for me:
>
> Not using "read until <string>" but reading "at" <position> "for" <number
> of bytes" also in this huge file.
>
> I can read even 100 MB into memory (it does not create a big problem) and
> then process using offset() and then reading the next pack of data.

As Mark suggested, that implies that the search string is uncommon in 
the text and large amounts of data need to be parsed before a match is 
found. By reading for a specified number of bytes instead, you guarantee 
a limited amount of parsing.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list