Clojure

clojure.java.io/do-copy: use java.nio for Files

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: Release 1.3
  • Fix Version/s: Release 1.6
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code

Description

NIO Channels reduce CPU/Disk load when copying Files (by using
syscalls like sendfile internally on Linux/Solaris).

CPU-Load goes from 100% to 0% on my system when copying large files, because no userspace-copying is involved:

Patch: http://github.com/juergenhoetzel/clojure/commit/2b5ab103cbcfe6c49236ac6966c032d3c922233d

Activity

Hide
Jürgen Hötzel added a comment -

Patch instead of linking to github

Show
Jürgen Hötzel added a comment - Patch instead of linking to github

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated: