1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Minor performance optimization.

Change-Id: I8c93a9b5347f58670ed4f87296ecd5e45429158d
This commit is contained in:
Sergey Prigogin 2016-04-22 16:28:53 -07:00
parent 2356a29c70
commit 6ff4be3caa

View file

@ -156,6 +156,8 @@ public class InternalParserUtil extends ParserFactory {
long fileReadTime = System.currentTimeMillis(); long fileReadTime = System.currentTimeMillis();
IFileStore store = EFS.getStore(file.getLocationURI()); IFileStore store = EFS.getStore(file.getLocationURI());
IFileInfo fileInfo = store.fetchInfo(); IFileInfo fileInfo = store.fetchInfo();
if (!fileInfo.exists())
return null;
input= file.getContents(true); input= file.getContents(true);
if (input instanceof FileInputStream) { if (input instanceof FileInputStream) {
try { try {