by mbokil on Wed May 09, 2012 12:13 pm
I've been thinking about forking classic menu into a native cinnamon applet. I have an applet I am working on now but when I am done I will look into it. One idea would be to have Cinnamon build an XML file of the menu on startup and save it somewhere. Then when the user clicks the menu button it would display the XML file. This would probably improve performance since it would prevent javascript from having to assemble the menu each time. In general gnome shell could benefit from some sort of caching system that compiles applets/extensions. This doesn't exist yet to my knowledge. A good example of this strategy is the Firefox browser. Extensions are cached first time they are run improving performance. In some ways Mozilla was way ahead of the times using Javascript and XML for apps. Most people are unaware that Firefox's GUI is a large collection of simple XML and Javascript files. They had performance issues early on but were able to fix it using caching and improving their Javascript engine.