This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 69108 - Too many calls to FileUtil.normalizeFile when accessing FileStatusCache
Summary: Too many calls to FileUtil.normalizeFile when accessing FileStatusCache
Status: RESOLVED WONTFIX
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2005-11-22 15:00 UTC by _ rkubacki
Modified: 2007-09-25 13:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2005-11-22 15:00:23 UTC
FileStatusCache.getStatus() calls FileStatusCache.exists() that calls
FileUtil.normalizeFile. The goal is to avoid inconsistencies when cache can
contain two entries for the same file (like Aaa.txt / aaa.txt) and was
introduced in revision 1.19 of this file. 

Unfortunately this is expensive call and can be performed often (during startup
when cache is deserialized, during CVS operations like update, action updating
and so on). The normalization should be moved to a better place as is suggested
in FU.nF javadoc to make this path faster.
Comment 1 Maros Sandor 2005-11-30 15:46:54 UTC
Removing it might have unknown sideeffects. The call is there to prevent errors
in cases where user renames a.txt to A.TXT. On Windows, a.txt continues to
exist, as reported by File.exists(), but this is wrong and we need to find out.
Comment 2 Maros Sandor 2007-09-25 13:49:38 UTC
Performance impact seems to be minimal compared to other code and we received no duplicate reports on this specific
performace issue. Also startup CVS scan has been completely removed.