[Mono-dev] file deletion poor performances using mono
antonello.moro at elsagdatamat.com
Wed Mar 19 08:51:01 EDT 2008
I'm experiencing poor mono performance on file and folder deletion, while
other file operations, like file creation, file reading, dir listing ecc,
have good performance.
Linux OS: RHEL4
Linux Kernel: 2.6.9-5.ELsmp
Linux FS: Ext3
Mono Runtime: Mono 1.9
The code I'm using:
Deletion of a folder containing 3000 files of size 100KB takes 5 secs with
mono, while it takes .140 ms using the bash command "rm -rf <dirname>"
I have executed many tests, always having the same results.
I have tried listing the files in the folder and deleting file first (with
File.Delete(filePath) ) obtaining the same results.
I have made other tests on file creation, moving, reading and writing,
obtaining good performance, mono seems to perform bad only in case of file
Do you have any idea why this happens? What can I do to improve this
operation (other than launching a bash command from c#)?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list