Page 1 of 1

Stripped down libraries

Posted: Tue Apr 29, 2014 04:19 UTC
by thekabal
I committed a change to Original tonight that adds a post-update script to composer that has it remove the portions of adodb and htmlpurifier that we do not need.

Grab the latest SVN, and then..

$ php composer.phar update

And you will get the latest versions of the libraries AND it will remove all the extra bits -- especially the .git directories, which were 20+ mb each for htmlpurifier and adodb.

A nice space savings. :)

I also added in ircmaxell's password_hash compat library. I'll be switching the password portions of the game to use it, eliminating phpass. Its a 48k library versus an 8k library, but it won't be used if the game is running on php-5.5+ (as there is a native password_hash function there).

Re: Stripped down libraries

Posted: Tue Apr 29, 2014 04:37 UTC
by thekabal
We could do the same for Smarty (~ 16mb), but I'm wrapping up for the night.

Also? Our .svn is now 58Mb, so if we do a release, we need to make sure to nuke that prior to release. ;)