mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[optimization] if we reload content from delegate there is no reason for separate getFileLength call
This commit is contained in:
+1
-1
@@ -506,8 +506,8 @@ public class PersistentFS extends ManagingFS implements ApplicationComponent {
|
||||
|
||||
if (reloadFromDelegate) {
|
||||
final NewVirtualFileSystem delegate = getDelegate(canonicalFile);
|
||||
FSRecords.setLength(getFileId(canonicalFile), delegate.getLength(canonicalFile));
|
||||
final byte[] content = delegate.contentsToByteArray(canonicalFile);
|
||||
FSRecords.setLength(getFileId(canonicalFile), content.length);
|
||||
|
||||
ApplicationEx application = (ApplicationEx)ApplicationManager.getApplication();
|
||||
// we should cache every local files content
|
||||
|
||||
Reference in New Issue
Block a user