Who's faster Thread last updated on 2004-07-04 21:53:41

Posted by member 159957 on 2004-06-10 23:23:33

Assuming we all got the same system,same theme with same modules loaded, everything the same.
What would you do to Litestep stucture to make your system the faster. Like a race.

Posted by member 1 on 2004-06-11 00:09:15 link

What do you mean? If you are required to have the same theme with same modules there is nothing that you can change in LS to make it faster.

Posted by member 99 on 2004-06-11 00:13:57 link

!quit

Posted by member 159957 on 2004-06-11 00:25:51 link

I got rid of NetLoadModule
Got rid of evars,rc
popup.rc jkey and jdesk all inside personal.rc
just vk104 (wich im not sure I even need)
then theme.rc and all module instructions in it, no other rc's
and them only images.
no If statements.

Edit: I guess its nuts,I just been watching to much formula 1 lately.We are beeting one Ferrari this sunday.

Posted by member 1 on 2004-06-11 03:04:05 link

moving files from point a to point b won't change anything really. the only way to speed up LS is to watch what modules you are loading.

and as for formula 1...ferrari will never die!

Posted by member 159957 on 2004-06-11 13:20:27 link

I just thought giving LS less to read would help, the hole point was to micro-measure the improvements , not if it was worthit (ofcourse it isnt). any way thanks for the comments.

Regarding F1 and Ferrari: This sunday story should read "One down-one to go"

Posted by member 7 on 2004-06-11 13:31:31 link

Run !reload. That's how long LS needs to parse step.rc. :)

Posted by member 159957 on 2004-06-11 13:48:03 link

Gottit,thanks.
By the way congrats on the "State of the step" Great stuff.

Posted by member 159957 on 2004-06-13 20:10:09 link

One down, one to go.

Posted by member 7223 on 2004-06-14 00:19:21 link

Puting very too much comments does slowdown the parse ?

Posted by member 7 on 2004-06-15 05:39:40 link

A few microseconds maybe. Without comments you'll spend more time figuring out wth the code means than you'll ever save by removing them. In fact, I think the time you spent typing your post above is more than you'll ever save. :P Unless of course you really have _a lot_ of comments. Check how long !reload takes to complete.

Posted by member 7223 on 2004-06-15 08:35:24 link

Puting very too much comments does increase litestep memory use ?

Posted by member 45783 on 2004-06-15 10:48:12 link

I'd bet that putting a gigabyte of comments wouldn't increase LS memory use. The program has absolutely no reason to work that way.

oilman: Why try to optimize the LS load-up -time at all? You see it only once every system start and even then it's only a second or two.

Posted by member 159957 on 2004-06-15 13:46:00 link

Warma:I have a sub-theme structure, what means my theme is really 4 themes and I switch beetween them constantly.(ussing label shortcuts)
A Subtheme structure allows you to have diferent environments of the same theme without the use of any scripting and a minimun of configuration.
You just need to switch really fast.

Posted by member 7 on 2004-06-17 05:20:35 link

The part that takes longest is usually module loading. Unless it's in the cache, Windows has to load the DLL from the harddrive, rebase it, resolve the dependencies (ie. load all other DLLs that the module depends on), run initialization routines (CRT, global constructors, DllMain, ...), etc. Modules like label (if you use lots of [vars]) are especially bad.

If you want to speed up your "sub-theme switching" you should keep all those modules running and !(net)reloadmodule the few that are not used in all sub-themes. Or, if you really switch between them all the time, keep all modules from all sub-themes loaded.

Posted by member 45783 on 2004-06-18 02:51:32 link

I don't know what exactly you are doing there, but since most important modules (Taskbar3, Labels, LSBox etc.) support resizing and moving, I've succumbed to heavy scripting to change my enviroment. IMO works great (and fast) and might be a better choise in the end.

If you wish, you could anyway send your theme to me, as I'd like to see what exactly you are doing (I'm always looking for new innovations on theming). Care to pop a link to your theme or send it via e-mail?

Posted by member 173706 on 2004-07-04 21:53:40 link

Quote:If you want to speed up your "sub-theme switching" you should keep all those modules running and !(net)reloadmodule the few that are not used in all sub-themes.

How could I do that?
How do you keep the common modules running and have them read the sub-theme theme.rc without having to load them again?

Edit:this is the way I switch themes now:
!Execute [!windows "minimize"]["$LiteStepDir$utilities\LSThemeInstaller.exe" /switch Ops1]

Ok,Im thinking you probably mean to use !reload or !refresh and have LS read the other theme.rc.

How would that switch line be?

Thanks.