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 82292 - Use of nbresloc: in utilities module slows down resource loading
Summary: Use of nbresloc: in utilities module slows down resource loading
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: URL (show other bugs)
Version: 5.x
Hardware: PC All
: P4 blocker (vote)
Assignee: Victor Vasilyev
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2006-08-09 15:28 UTC by _ rkubacki
Modified: 2009-10-22 23:35 UTC (History)
2 users (show)

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 2006-08-09 15:28:40 UTC
Menu items provided by utilities module uses nbresloc: URLs to specify what file
will contain the specification of item. This is slow when the content is
accessed as we ask all classloaders (/modules) to load it trying various
combinations of branding/l10n tokens. More than 5 * #ofModules calls to
JarFile.getEntry() can be saved for each item. This can be tuned a bit if we
optimize nbresloc handler but the same result with better performance can be
achieved if we use relative URL. For translated version we will overrid layer
and provide customized url there.
Comment 1 Ken Frank 2007-10-17 16:57:39 UTC
does the fix require any changes now to how the .url will be
translated or other related requirements (compared to how its done
now for nb6) ?

ken.frank@sun.com
Comment 2 Jesse Glick 2009-10-20 17:10:13 UTC
core-main #f7b549fbc48d
Comment 3 Quality Engineering 2009-10-22 23:35:38 UTC
Integrated into 'main-golden', will be available in build *200910221401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f7b549fbc48d
User: Jesse Glick <jglick@netbeans.org>
Log: #82292: use relative URLs where feasible.