I should have measured. I made some patches, measuring # of calls and time spend using `nanoTime`. Absolute times below are in microseconds.
I compared the extra time needed for checks to the total time spent in this `shouldDelegate` function; during startup there are ~677 (bare platform) or ~892 (java cluster enabled) invocations, with 21% - 30% time spent in the new access checks. The total time spent in the new checks on startup is ~10kusec = 10msec. I also printed the counters during shutdown: start pristine IDE, load java project (+ enable java cluster), let the scan to finish, open editor. Numbers for the whole IDE run: ``` Number of bootstrap accesses: 3333 Extra time for bootstrap restrictions: 19065 ``` (times in usec) I guess I can throw away the patches as the time impact seems negligible. [ Full content available at: https://github.com/apache/incubator-netbeans/pull/844 ] This message was relayed via gitbox.apache.org for [email protected]
