#400 closed
Scriptish

Bring number of Cu.import down

Reported by Scriptish | September 18th, 2011 @ 09:53 PM

Especially during startup... Cu.import is pretty fast, but not free exactly (always resolving the uri and stuff)

Either remove the import (if no longer needed) or check if they are eligible for lazyImport.

Current startup Cu.import count:

```

 34 Cu.import resource://scriptish/constants.js
 11 Cu.import resource://scriptish/utils/Scriptish_stringBundle.js
 11 Cu.import resource://scriptish/prefmanager.js
 10 Cu.import resource://scriptish/logging.js
  7 Cu.import resource://scriptish/scriptish.js
  4 Cu.import resource://scriptish/utils/Scriptish_getUriFromFile.js
  4 Cu.import resource://scriptish/utils/Scriptish_getContents.js
  3 Cu.import resource://scriptish/utils/Scriptish_alert.js
  3 Cu.import resource://scriptish/script/scriptdependency.js
  3 Cu.import resource://scriptish/config/configdownloader.js
  2 Cu.import resource://scriptish/utils/Scriptish_getWriteStream.js
  2 Cu.import resource://scriptish/utils/Scriptish_getWindowIDs.js
  2 Cu.import resource://scriptish/utils/Scriptish_convert2RegExp.js
  2 Cu.import resource://scriptish/utils/PatternCollection.js
  2 Cu.import resource://scriptish/third-party/Timer.js
  2 Cu.import resource://scriptish/script/script.js
  2 Cu.import resource://scriptish/script/scripticon.js
  2 Cu.import resource://scriptish/script/cachedresource.js
  1 Cu.import resource://scriptish/utils/Scriptish_openInEditor.js
  1 Cu.import resource://scriptish/utils/Scriptish_mergeRegExps.js
  1 Cu.import resource://scriptish/utils/Scriptish_memoize.js
  1 Cu.import resource://scriptish/utils/Scriptish_launchApplicationWithDoc.js
  1 Cu.import resource://scriptish/utils/Scriptish_installUri.js
  1 Cu.import resource://scriptish/utils/Scriptish_getURLsForContentWindow.js
  1 Cu.import resource://scriptish/utils/Scriptish_getTLDURL.js
  1 Cu.import resource://scriptish/utils/Scriptish_getProfileFile.js
  1 Cu.import resource://scriptish/utils/Scriptish_getEditor.js
  1 Cu.import resource://scriptish/utils/Scriptish_getBrowserForContentWindow.js
  1 Cu.import resource://scriptish/utils/Scriptish_cryptoHash.js
  1 Cu.import resource://scriptish/third-party/regexpmerger.js
  1 Cu.import resource://scriptish/third-party/MatchPattern.js
  1 Cu.import resource://scriptish/script/scriptresource.js
  1 Cu.import resource://scriptish/script/scriptrequire.js
  1 Cu.import resource://scriptish/script/scriptinstaller.js
  1 Cu.import resource://scriptish/script/scriptdownloader.js
  1 Cu.import resource://scriptish/menucommander.js
  1 Cu.import resource://scriptish/content/browser.js
  1 Cu.import resource://scriptish/config/config.js
  1 Cu.import resource://scriptish/addonprovider.js

```

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket