How can I accelerate the progress of Nd4j.createFromArray()?

I find it that the speed is slow when I try to read datas from an array via Nd4j.createFromArray(data).It costs tens seconds when the data length is about one million.How can I speed up the progress?
By the way,the platform is on Android armv8-64.

@qq12cvhj could you tell us a bit more about the setup? You could be running in to GC issues. The JVM gets really slow when working with large files without pre allocated spaces sometimes. I’d be happy to run something if I can reproduce it to see what the outputs are.