View Single Post
Old 11-17-2009, 08:07 AM   #124
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Some (educated ) guesses... During a 'normal start', contentlister starts a shell to run a script (run.sh), which starts your app. When using the registry, contentlister does a fork(), followed by an execvp() of your application (no shell involved). With execvp() lots of process resources (such as open files) are kept open. It could be (not sure about this) that shared libraries are still attached to the process causing the new excutable to load (= dynamic linking) faster.
EDIT 18 nov: this is probably not correct?

PS: This gives me a cool idea: if I add the Lua interpreter to contentlister (I've been planning this for a long time), and 'preload' lgob (including the gtk libs, which is already available in contenlister), then it should be possible to start Lua apps and tools very quickly...

A Lua enabled contentlister would also be much easier to modify / extend...

Last edited by hansel; 11-18-2009 at 04:23 AM.
hansel is offline   Reply With Quote