Re: Script losing speed



Two possible issues:

1) Memory management issues with the $variable growing
2) Having to access data which is not in the cache

Or an interaction between the two. My approach would be to try commenting
out the steps that build the $variable to see if that has an impact on the
speed of the script. Then, I would try dramatically increasing and the
decreasing the cache size FileMaker has to work with (default is 8MB) to see
if that had an impact.

A faster method could be to build what you need in a separate table, then
export the whole table, rather than looping through and putting it all in a
variable.

"Ursus" <ursus.kirk@xxxxxxxxxx> wrote in message
news:446c43b7$0$61088$dbd4b001@xxxxxxxxxxxxxxxxxx
FMP8 Advanced, WinXP

I have made a exporting script. It collects al data I need in a variable.
There are 300 records, which in the end result in a text(htm) file of
358kB. When I start the script it shoots alkong, but during the loops it
gets slower and slower. I'm puzzled by the speedloss. There is only one
global field involved (to to perform the export in the end), all data
needed are stored in local variables, of which there is one that will
export in the end.

The basics are as follows.

Find all records
create htm-header in $Export
loop1, collect the vallues of the current record
Append Loop1data to $Export
loop2, collect related data from a second table
Append Loop2data to $Export
end loop2
goto next record, exit when done
end loop1
create index, append it to $Export
Now stuf the the $Export into the global gExport
omit the record
show omitted only (I now have only one record active)
Export record

It is now a huge issue, I can just wait untill the script finishes, but
the slowing bothers me. Have I done something wrong? Or just stick with
it.


Keep wel, Ursus



.



Relevant Pages

  • Script losing speed
    ... I have made a exporting script. ... loop1, collect the vallues of the current record ... Append Loop1data to $Export ... loop2, collect related data from a second table ...
    (comp.databases.filemaker)
  • Re: IIS Template Cache and Script Engine Cache
    ... Ok, I went and asked the ASP Dev about it, so I will share what I've ... The two concepts you are asking about is the "Template Cache" and "Script ... The "Template Cache" is a cache of the intermediate form of the particular ...
    (microsoft.public.inetserver.iis)
  • Re: Problem: Threads in Python?
    ... >This script calls a very slow function, with a duration of 10-40 seconds. ... i inserted a cache for the data. ... blocks the cgi script until it gets a result. ...
    (comp.lang.python)
  • Re: IIS Template Cache and Script Engine Cache
    ... the templates in the template cache containing "other ... By this do you mean that the HTML that is in the asp page ... Cache" and "Script ...
    (microsoft.public.inetserver.iis)
  • Re: query parameters at the end of the JavaScript file
    ... CGI to serve static script files. ... information in the query is a version number. ... Browsers are not supposed to cache GET requests with queries AFAIK. ... There is no "query tacked onto it", the request is part of the URI ...
    (comp.lang.javascript)