1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-23 00:03:53 +02:00

[291738] [efs] repeated queries to RSEFileStoreImpl.fetchInfo() in short time-span should be reduced

This commit is contained in:
David McKnight 2009-11-09 20:52:09 +00:00
parent d424875e62
commit 15bf487477

View file

@ -83,7 +83,7 @@ public class RSEFileStoreImpl extends FileStore
// to help with with performance issues when eclipse makes excessing fetchInfo calls // to help with with performance issues when eclipse makes excessing fetchInfo calls
private long _lastFetch = 0; private long _lastFetch = 0;
private int _fetchWaitThreshold = 5000; private int _fetchWaitThreshold = 1000;
//cached IRemoteFile object: an Object to avoid early class loading //cached IRemoteFile object: an Object to avoid early class loading
private transient volatile IRemoteFile _remoteFile; private transient volatile IRemoteFile _remoteFile;
@ -104,7 +104,7 @@ public class RSEFileStoreImpl extends FileStore
_fetchWaitThreshold = Integer.parseInt(waitStr); _fetchWaitThreshold = Integer.parseInt(waitStr);
} }
catch (Exception e){ catch (Exception e){
_fetchWaitThreshold = 5000; _fetchWaitThreshold = 1000;
} }
} }
} }