Are External Scripts faster or more responsive than internal?

Thursday, December 13, 2007 by SirSmiley | Discussion: DesktopX

So, I'm working on a fairly large widget/gadget and have been noticing some lag's in responsiveness when I apply/save the main script.
This morning I moved most of it into an external file and have noticed DX's refresh time to be significantly better with just the main callbacks internally. Not to mention it's easier to navigate the subprocedures/functions from Notepad++.

Wondered if anyone else had noticed this or if my mind's playing tricks?

If it matters my base objects consist of 47 objects then depending on my testing add up to another 150 or so cloned objects.
RomanDA
Reply #1 Sunday, December 16, 2007 8:45 PM
I have never tried to use the external scripts, just found them frustrating. I wonder if it is because when you put the script in the object DX has to check each line for errors when you save it, but when its external it might just "load" it not check it. But as I have not tried this i dont know. But thats my guess.
SirSmiley
Reply #2 Sunday, December 16, 2007 9:11 PM
Any problems I've found has been with callbacks. So, they're best left in the main object anyway.

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01