LC7 and 8 - Non responsive processing large text files

Richard Gaskin ambassador at fourthworld.com
Fri Apr 15 11:41:34 EDT 2016


Roland Huettmann wrote:

> < Richard: "You may find the sample stack attached to this report useful:
> <http://quality.livecode.com/show_bug.cgi?id=17210>"
>
> Richard, thanks a lot for the sample stack. I downloaded and tested
> "LargeFileRead.livecode". Unfortunately it also creates the same symptoms
> on Windows...

The responsiveness is a separate matter, well covered in Mark's replies.

Here my interest is in making sure your operation runs and efficiently 
as it can.

Have you had a chance to explore measuring different executions times as 
you adjust the kBufferSize constant at the top of the script?

Here on my Linux box I found, rather surprisingly, that a buffer as 
small as 128k delivered optimal speeds.  In discussing this with Peter 
Brett it turns out there are memory-mappings provided by the OS that 
seem to play a role there.

It would be very interesting to me to learn what buffer size you find 
optimal on Windows.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list