It is said that Java is 10x faster than python in terms of performance. That\'s what I see from benchmarks too. But what really brings down Java is the JVM startup time.
Um... write the documents to a directory (if they're not already) and have the Java program process all of them in one go?