This is a 2-step process. You read in from one file and write to another. You need to find out if it is the read or write that takes long. Most common, it's the write. Then it depends on what kind of storage you have on that file system and host workload at the time.