Bill Roper (billroper) wrote,
Bill Roper

Zip, Zam, Zowie, and Swoosh!

With a few adjustments to get everything into alignment, my Java-based reader/writer for our old file format is working nicely. I managed to read a 90 MB file and write it back out so that the old application could successfully read it, so I'm going to count that as a success.

It is amazing how much faster the file writing got when I wrappered the FileOutputStream with a BufferedOutputStream. :)

I also managed to save about 7% (which was much less impressive, but nice to have) by fetching and storing the default constructor for the class and calling Constructor.newInstance instead of Class.newInstance.

Since I promised this bit of coding would be done this week, I'm feeling pretty good about it...
Tags: computers, java, musings, work
  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded