mrpdaemon / encfs-java

encfs-java is a Java library for accessing data in EncFS volumes
GNU Lesser General Public License v3.0
42 stars 15 forks source link

Get rid of extra copy in EncFSOutputStream #18

Closed mrpdaemon closed 12 years ago

mrpdaemon commented 12 years ago

writeBuffer() takes an additional copy of the buffer before calling EncFSCrypto.blockEncode() - we can create a version of blockEncode that accepts array ranges to shave off the extra copy.

mrpdaemon commented 12 years ago

Noticed that the same extra copy happens in EncFSInputStream as well.

mrpdaemon commented 12 years ago

Fixed with 2ed6748688a3f3433d5afa02fd8eeb6a5ba17ae2