[performance] use file name from cache, instead of loading from disk
[idea/community.git] / platform / platform-impl / src / com / intellij / openapi / vfs / newvfs / persistent / FSRecords.java
index 9d55d9c1af0f3bb8faefef0b5d2661ce590369df..b97e14b495e47c55a09c73d31f3e140ffef02f6b 100644 (file)
@@ -1102,7 +1102,7 @@ public class FSRecords implements Forceable {
       r.lock();
       try {
         final int nameId = getRecordInt(id, NAME_OFFSET);
-        return nameId != 0 ? getNames().valueOf(nameId) : "";
+        return nameId != 0 ? FileNameCache.getVFileName(nameId).toString() : "";
       }
       finally {
         r.unlock();