apt – Paolo Redaelli https://monodes.com/predaelli A civil engineer with a longlife fondness for Software Libero Tue, 28 Jul 2015 23:07:21 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.2 91795679 Fat, obese npm https://monodes.com/predaelli/2015/07/29/fat-obese-npm/ https://monodes.com/predaelli/2015/07/29/fat-obese-npm/#respond Tue, 28 Jul 2015 23:07:21 +0000 http://monodes.com/predaelli/?p=599 npm-huge-allocationI do understand that today designs tend to put less emphasis  on conservative memory usage but that’s pretty outrageous. A simple search into node’s package manager ate one gigabyte and half of main memory having to deal with a simple question like

npm find foobar

more speficically GNU time told me that it took 48 seconds and 1799Mb of resident memory to scan thorugh a local list of the 169.312 total packages available from npmjs.com.

Apt, the almighty Debian package manager consumed a mere 99 MegaBytes to search into package names and descriptions throught more than an hundred thousands packages (107819) which are usually far beefier that javascript modules.

That’s more than eighteen times.

Javascript, your librarian is obese.

]]>
https://monodes.com/predaelli/2015/07/29/fat-obese-npm/feed/ 0 599