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.
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.
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.
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!
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"
Run !reload. That's how long LS needs to parse step.rc. :)
By the way congrats on the "State of the step" Great stuff.
Puting very too much comments does slowdown the parse ?
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.
Puting very too much comments does increase litestep memory use ?
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.
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.
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.
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?
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?