ActiveState Powered by ActiveState

ActiveState Community


Komodo Edit - disable some languages

Posted by hcgtv on 2007-02-24 11:26
OS: All / Any

Hi,

Playing around with Komodo Edit 4.0.2 and I started thinking about disabling some of the supported languages.

Perl - The occasional need, not all the time
PHP - Yes, a definite load every time
Python - I don't have the interpreter installed, maybe for customizing Komodo?
Ruby - Don't use
Tcl - Don't use
XSLT - Occasionally need
JavaScript - Yes
HTML - Yes
XML - Yes

What if some of these languages are disabled, would the editor load quicker and take up less memory?

Thanks.

Bert Garcia ~ hcgtv ~ PHPXref ~ TxPun

shanec | Sat, 2007-02-24 20:04

Many of the classes do not get loaded until you open a file of a specific language type, and even if they did, the overhead of that is very little.

hcgtv | Sat, 2007-02-24 21:41

Looking into it more, how about extensions that are loaded to handle certain languages? Do they occupy any memory space, even though I'm not working on Ruby let's say?

Edit 4.0 takes about 10 seconds to load on a newly booted Windows XP, subsequent loads take about 3 seconds. Memory used on load is about 40MB, which ain't much considering.

My laptop is an AMD Athlon 64 3400+ with 1GB of ram.

Bert Garcia ~ hcgtv ~ PHPXref ~ TxPun

shanec | Sun, 2007-02-25 10:59

Disabling any of the languages is going to result in practically zero performance or memory footprint improvements.

The startup time difference you are seeing is what we call a "cold startup". The OS caches a lot of stuff after the first startup to make the system more responsive.

hcgtv | Sun, 2007-02-25 12:31

Shane,

You've convinced me :)

It's just the tweaker in me wondering how to squeeze the last bit of speed from something.

Thanks.

Bert Garcia ~ hcgtv ~ PHPXref ~ TxPun

shanec | Sun, 2007-02-25 15:52

There is lots of tweak-ability in Komodo, but this is just one area where the gain is close to nil. If you really want to tweak, check out the extensibility challenge :)

-->