How to improve cp speed to USB via App on Mac OS

I made a example toy project which does file copy from desktop to USB 3.0 devices.

What I wonder is that the speed of cp function using usb copy is extremely low compared with cp in Finder.

For example,
  1. In Finder, speed of copying file to another directory(local) is.. 10-20MB/s

  2. In situations using specific applications, From any local directory on local to USB devices(USB 3.0), speed of copying file is 5-6MB/s

is this right situations? or Can I improve this things?
I ask for help from developers who know this!
Accepted Answer
What API are you using for the copy?

Is your app sandboxed?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
How to improve cp speed to USB via App on Mac OS
 
 
Q