Nooku Server loses 40% weight
Last December we announced our plans for Nooku Server, a multi-site and multi-lingual distribution of Joomla 1.5. With the help of our community we created a diet for Nooku Server and defined a roadmap.
For the first alpha we are focusing on implementing the key ingredients of our diet. Most of the work involves removing legacy code, legacy libraries and doing clean-up. In the past weeks we have been making steady progress.
- Core extensions: All the components, plugins and templates that didn’t made it into our list have been removed
- XML-RPC: XML-RPC support has been removed
- PDF: PDF support has been removed
- Legacy: Legacy support for Joomla 1.0 and PHP4 has been removed
- Security: All assets (css,js,images) have been moved to the media folder
- Libraries: Legacy libraries have been removed
- Performance: Hit support in Content and Weblinks has been removed
- Mootools: Mootools has been upgraded to 1.2 including the compatibility layer
- Framework: Nooku Framework has been added
With most of the refactoring completed it’s time to weigh the result. I have done a code count today to compare the code bases of Joomla 1.0, 1.5, 1.6 and Nooku Server. I used Ohcount, a little command line tool that is also used by Ohloh to do code counting.
We have made Nooku Server a whooping 40% lighter in code size. Yes, you read that right, we removed 40% code and we added a whole new framework at the same time.
Here are the detailed results:
1. Total code count
Comparing the overall code count (php, javascript, html, css, xml) of Nooku Server with Joomla 1.5 or 1.6 we are getting a whooping +/- 45% code loss. Or almost ½ of the total code has been removed to make Nooku Server leaner and meaner.
2. Total code count – PHP
The total code comparison isn’t 100% fair as we also removed most of the frontend templates, only milkyway is still left, in Nooku Server. To be fair, let’s also compare only the PHP code. This is giving the following graph :
Compared with 1.5: 45% less code
Compared with 1.6: 40% less code
We need to add here that Nooku Server includes Nooku Framework which has approx 10.000 lines of PHP code, if we would remove Nooku Framework the difference would even be bigger and go over 50%.
3. Comments percentage
Another useful comparison to make is the amount of code comments. Code comments give an idea about how well the code is documented which is a measure of code quality. Again we only compare comment percentages in the PHP code.
Looking at this graph we see an slight decrease in code comments from 1.0 to 1.5, for 1.6 the amount of comments have been increased, Nooku Server is definitly in the lead.
We take alot of care in adding code comments to Nooku Framework and are constanly improving our code comments and in code documentation.
4. Total code count by type
A more detailed overview of the code count per type for each of the packages. You noticed that Joomla 1.6 is roughly the same size as 1.5 even a little bigger with the added templates.
Nooku Server on the other hand is a lot leaner and meaner and is moving in the direction of the size of Joomla 1.0, while adding alot more power through the inclusion of the Nooku Framework.
So far our little diet is coming along pretty well. We will see a slight code increase again when we start adding the multi-site and multi-lingual features but we will also start refactoring components to Nooku Framework which in turn should also reduce the overall size. I will update the graphs after each alpha so you get an idea how to code size evolves over time.
Note: An interactive spreadsheet with the actual data and graphs can also be found here.
-
http://topsy.com/blog.nooku.org/2011/01/nooku-server-loses-40-weight/?utm_source=pingback&utm_campaign=L2 Tweets that mention Nooku Server loses 40% weight « Nooku Blog — Topsy.com
-
http://brian.teeman.net Brian Teeman
-
http://torkiljohnsen.com Torkil Johnsen
-
http://johan.janssens.me Johan Janssens
-
http://johan.janssens.me Johan Janssens
-
http://torkiljohnsen.com Torkil Johnsen
-
http://johan.janssens.me Johan Janssens
-
http://blog.anahitapolis.com/2011/02/anahita-is-not-a-joomla-extension/ Anahita is not a Joomla extension! « Anahitapolis
-
AndrewEddie
-
AndrewEddie
-
http://www.facebook.com/profile.php?id=680486992 facebook-680486992
-
AndrewEddie
-
http://twitter.com/stipsan Stian Didriksen
-
AndrewEddie
-
http://k2joom.com Simon Wells
-
http://johan.janssens.me Johan Janssens
-
http://johan.janssens.me Johan Janssens
-
http://www.facebook.com/profile.php?id=606052250 Eric Doriean
-
http://johan.janssens.me Johan Janssens
-
http://twitter.com/Hackwar Hannes Papenberg
-
http://torkiljohnsen.com Torkil Johnsen
-
http://johan.janssens.me Johan Janssens
-
http://johan.janssens.me Johan Janssens
-
Andrzej Makowiecki
-
http://www.facebook.com/profile.php?id=606052250 Eric Doriean
-
http://twitter.com/Hackwar Hannes Papenberg
-
http://johan.janssens.me Johan Janssens
-
AmyStephen
-
AndrewEddie
-
AmyStephen
-
http://blog.blueforce.ch/2011/02/nooku-server-ein-schritt-in-die-richtige-richtung/ Nooku Server – Ein Schritt in die richtige Richtung? | Rogers Blog
-
Jonathan
-
AndrewEddie
-
Daniel
-
Daniel
-
AndrewEddie
-
Daniel
-
AndrewEddie
-
AmyStephen
-
http://Valanx.org David Deutsch
-
http://ninjaforge.com Daniel Chapman
-
AndrewEddie
-
http://blog.anahitapolis.com/2011/04/status-of-anahita-in-the-first-quarter-of-2011/ Status of Anahita in the first quarter of 2011 « Anahitapolis
-
http://%/zzzqtfe31 Richelles
-
http://blog.nooku.org/2011/10/nooku-server-on-tour/ Nooku Server on Tour « Nooku Blog



