Closed ghost closed 7 years ago
P.S. Maybe after use #https://github.com/jtransc/jtransc/pull/189 will better, i see it 2 days ago =)
Even when arraycopy is now optimized, it is always faster to not copy at all. Also less memory required. So i'll check if we can totally avoid duplicating memory.
This should be fixed by now after the PR is merged ( https://github.com/jtransc/jtransc/pull/189 ). It still requires your approval.
JA_B.fromBytes
now just creates a wrapped array + JTranscSyncIO.ByteStream.read
now uses optimized System.arraycopy
confirmed fixed.
LimeFiles ->
first line bytes use readBytes
go in JA_B.fromBytes
This is first bytes copy, we can use directly
this allocate or directly if already have
Next place in JTranscSyncIO.ByteStream
Again copy, we have lose memory and time. Can we use blit or memory copy or somethink. We have many big files and when open new window it's create lag.