Brad Fitzpatrick (bradfitz) wrote in lj_dev,
Brad Fitzpatrick
lj_dev trimming

Over time people keep adding crap to and the time it takes to run a simple script which requires keeps increasing.

Currently (on my dev machine), it takes 0.690 real seconds just to parse and load dependent modules from (this is after warming caches unti the number stabilizes)

I experimented with trimming, removing non-core libraries:


real 0m0.690s

remove ljcom modules: geo::ip, cracklib, inline

real 0m0.652s

remove modules: ljlang, poll, feed, links, cleanhtml, htmlcontrols

real 0m0.588s

remove mail stuff from ljlib: MIME::Lite and Text::Wrap

real 0m0.547s

remove phonepost (and thus Blob) from ljlib:

real 0m0.512s

remove paylib from ljcom:

real 0m0.329s

And this is all without moving any functions out of For instance, LJ::send_mail() could move to a new LJ::Mail package, and that package could also require Mime::Lite and Text::Wrap.

We did this a while back, but it's time to trim it all again. (scary, though)

  • cl-journal livejournal client

    Hey everyone, I'd like to present a livejournal client that I wrote to fulfill my needs but maybe there are other people that can find it…

  • SessionGenerate and ljloggedin

    Are there any information after release 86 and changes in cookies scheme to use sessiongenerate? It returns ljsession key, but this key is not enough…

  • Retrieving comments

    Hi, Is there a way to retrieve a list of comments made by user XXX (which may or may be not the currently logged in user) in the journals of users…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded