I’m using the below simple code:
InStream.setPosition(1024); //or something similarly small.
int64 br = OutStream.writeFromInputStream(InStream, -1);
This does nothing more than scrapping the first 1024 bytes of source file and copy the rest to the destination file.
Source file is large, e.g. 250 MB. In windows 7 and above this operation completes in 1-3 seconds while in XP it takes around 3 minutes.
Does anyone know why? Has anyone observed anything similar? The horsepower of the machines is similar and both file systems are NTFS. XP is a VM but this itself cannot justify this huge difference in performance.