On Performance of Array Access

Richard Gaskin ambassador at fourthworld.com
Fri Aug 31 20:50:58 EDT 2018


jbv wrote:

 > Once something "suitable for including in a 9.0.x maintenance release"
 > is available, could you please include it to LC server, and especially
 > the version of LC9 server installed on on-rev sage server ?

Here's a potentially quick CPU and RAM reduction opportunity for LC Server:
https://quality.livecode.com/show_bug.cgi?id=14115

With a CGI like LiveCode, it's launched with each request.

Depending on the system, up to 3/4 of the boot sequence is loading and 
initializing fonts.

I appreciate that LC Server now has the ability to generate custom 
graphics, some of which may need to specify fonts.  But I'd wager than 
less than 0.1% of scripts written for LC Server do that.

Comment #5 there suggests maybe adding a -f flag in the command line 
call we add to our .htaccess files to bypass the font init almost no one 
is using.

If we could get approval for that, we could probably find someone in the 
community to add the parsing of that flag from the input options and the 
IF statement before the font init.

By itself it won't make the scripts themselves faster.  But it'll make 
the engine init faster, and much leaner since it won't have the font 
info in memory.

On Dreamhost, for example, running LC Server is unpredictable because of 
its memory requirements and the full suite of fonts they have on their 
systems.

-- 
  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