Community
Participate
Working Groups
PreferenceForwarder#contains(String) iterates over the preference keys while Preferences#contains(String) did a lookup in a hashtable. This is a performance problem when opening a Java editor and takes ~8% of the time in I200405130800 with the performance fix from bug 61446 applied. (I will repeat my measurements with the upcoming I-builds that will include the above mentioned fix.)
adding dependency and keyword
Aren't we supposed to release slow code in the beginning so when we do our performance pass we look that much better? Will fix and also take out all the Thread.sleep() class.... :-)
Oops... I meant to say "calls" instead of "class". man I can't even try to be funny today. Fixed and released to HEAD. Thanks.
Thanks for the quick response. Btw., we just noted that with this change contains() no longer fails gracefully when null is passed in as an argument. We fixed our side (see bug 62612), but you may want to check for null to be on the safe side here.
Agreed. See bug 62586.
I also just changed #isDefault(String) which had the same performance problem as #contains(String).