When there are a large number of input XMl files (like 929 pubmed xml files) opening all the readers at the beginning wastes a lot of memory, especially when these readers are only used one at a time. In the pubmed example, memory usage spikes to 10GB at start right after all the bufios are created. Make it so only one is created at a time to reduce this memory load.
When there are a large number of input XMl files (like 929 pubmed xml files) opening all the readers at the beginning wastes a lot of memory, especially when these readers are only used one at a time. In the pubmed example, memory usage spikes to 10GB at start right after all the bufios are created. Make it so only one is created at a time to reduce this memory load.