Is there a way to avoid spending time in the two merge methods?

I noticed that the method: fit(ListDataSetIterator) spend a significant amount of time in DataSet.merge() / mergeFeatures and mergeLabels (I am doing it in batch). Does it mean at every call of fit method - it is rebuilding a DataSet for each batch? in my case - the content of my listDataSetIterator does not change so I guess this step is not necessary. Is there a way to avoid spending time in the two merge methods?
You already invited:

Ezra - Sql

Upvotes from:

that merge is in the iterator itself, DL4J's MultiLayerNetwork/ComputationGraph don't do merging like that
maybe try ExistingDataSetIterator instead of what you are using
https://deeplearning4j.org/doc ... -util

If you wanna answer this question please Login or Register