Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
offloading file copy work to operating system allows potential speedup
Since Plexus Utils enforces Java 7 it is safe to invoke NIO operations introduced by JRE 7. Among those operations are methods for potentially offloading work to the operating system. Theoretically this should be (much) faster on modern JREs than pumping bytes up and down the JVM just to get them from one file into another. Even without any actual performance gain it makes sense to get rid of custom code in favor of JRE code, as it improves class loading speed and reduces memory and on-disk footprint, while cutting down number of potential bugs at the same time.
- Loading branch information