eclipse-platform / eclipse.platform

https://eclipse.dev/eclipse/
Eclipse Public License 2.0
68 stars 100 forks source link

Improve File delete performance #1461

Open jukzi opened 3 weeks ago

jukzi commented 3 weeks ago

Currently Project/Clean... takes much time to only delete the output. Hopefully that can be improved - somehow

image

HannesWell commented 3 weeks ago

I wonder why RemoveDirectory is called if the element to be deleted is actually a file?

In general if the JDK implementation is too generic and therefore too slow we could consider adding a native (JNA, later FFM based) implementation by adding a delete() method to the NativeHandler? Maybe we can avoid some of the native calls done in nio.