Just in case anyone gets to this question through Google or wherever, I wanted to let you know that if the built in solution is too slow, I wrote my own script to export layers to either JPGs or PNGs that it much faster than the built-in script.
That answer can be found here.
But basically it does a minimal amount of work to export layers, rather than the long and complex process Photoshop takes, therefore being much faster.