Community
Participate
Working Groups
Noticed this doing debugging. The JavaCommandStackPropertySheetEntry (mainly via inherited code) called getText(Object) 3 times for every property when a JavaBean is selected, and also calls getName() several times. getText(Object) often requires a VM round trip, and getName() requires searching decorator lists. For performance it seems that the entry could cache these. I also am having second thoughts about the property descriptor caching the label provider instance. Instead we should change it to cache the method proxy used to create it - it will mean that people can hold onto values if they want to, and the real problem isn't that construction was slow, it was that it occured too often.
Performance