Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 470305

Summary: Project refresh in Mars is much slower than Luna
Product: [Eclipse Project] Platform Reporter: Dawid Pakula <zulus>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: sptaszkiewicz
Version: 4.5   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Dawid Pakula CLA 2015-06-16 13:43:23 EDT
I opened one of my project in fresh Mars RC4 SDK workspace (~60k resources, 1.4GB, SSD disk).

Project refresh (f5) on Luna SR2 : 2s-5s
Project refresh (f5) on Mars RC4 SDK : 60s and more

In profiler I see that everything stuck on java.io.File.list(java.io.FilenameFilter (called from org.eclipse.core.internal.filesystem.local.unix.UnixFileNatives.fetchFileInfo(String):).

I deleted all project filters and still same.

I created new project sample project (without any nature), and copy all files into it, still slow like hell.

Note: Project have couple symlinks. 
Note 2: Slowest refresh is on dirs where in one place are ~2k and more files with unknown file type. Even if they are filtered.

Oracle JDK 1.8u45
Comment 1 Szymon Ptaszkiewicz CLA 2015-06-17 04:48:13 EDT
(In reply to Dawid Pakula from comment #0)
> In profiler I see that everything stuck on
> java.io.File.list(java.io.FilenameFilter (called from
> org.eclipse.core.internal.filesystem.local.unix.UnixFileNatives.
> fetchFileInfo(String):).

Thanks for reporting, Dawid! Based on the above information the cause is the same as in bug 470153.

*** This bug has been marked as a duplicate of bug 470153 ***