Large Scripts Run too Slowly

Richard Gaskin ambassador at fourthworld.com
Mon Apr 20 10:40:14 EDT 2015


Ray wrote:

> I've got a stack script of over 15,000 lines.  It's recently started
> running too slow to work with.  Everything is painfully slow from plain
> typing to searches to scrolling.

How long has this been slow?

What's changed since it was fast?

You can break code up all sorts of ways, libraries, backscripts, 
behaviors, depending on how your app is structured and how its objects 
interact.

But if the change was recent, given how long it takes to write 15 KLOC 
it may also be worth looking into what the more recent code is doing.

To spot redundant calls and other bottlenecks, this free tool has saved 
my bacon many times:
<http://fourthworld.net/revnet/devolution/4W_FlightRecorder.rev.gz>

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