Stripped down libraries

For announcing, describing and discussing code changes to BNT.

Post Reply
thekabal
Posts: 91
Joined: Sat Apr 19, 2014 11:32 pm

Stripped down libraries

Post by thekabal » Tue Apr 29, 2014 5:19 am

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).

thekabal
Posts: 91
Joined: Sat Apr 19, 2014 11:32 pm

Re: Stripped down libraries

Post by thekabal » Tue Apr 29, 2014 5:37 am

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. ;)

Post Reply