HashMap<ViewClassInfo, ViewElementDescriptor> infoDescMap =
new HashMap<ViewClassInfo, ViewElementDescriptor>();
- ArrayList<ViewElementDescriptor> newViews = new ArrayList<ViewElementDescriptor>();
+ ArrayList<ViewElementDescriptor> newViews = new ArrayList<ViewElementDescriptor>(40);
if (views != null) {
for (ViewClassInfo info : views) {
ViewElementDescriptor desc = convertView(info, infoDescMap);
// Note: ViewStub is already described by attrs.xml
insertInclude(newViews);
- List<ViewElementDescriptor> newLayouts = new ArrayList<ViewElementDescriptor>();
+ List<ViewElementDescriptor> newLayouts = new ArrayList<ViewElementDescriptor>(30);
if (layouts != null) {
for (ViewClassInfo info : layouts) {
ViewElementDescriptor desc = convertView(info, infoDescMap);
newViews.add(fragmentTag);
}
- List<ElementDescriptor> newDescriptors = new ArrayList<ElementDescriptor>();
+ List<ElementDescriptor> newDescriptors = new ArrayList<ElementDescriptor>(80);
newDescriptors.addAll(newLayouts);
newDescriptors.addAll(newViews);
}
String tooltip = info.getJavaDoc();
- ArrayList<AttributeDescriptor> attributes = new ArrayList<AttributeDescriptor>();
+ // Average is around 90, max (in 3.2) is 145
+ ArrayList<AttributeDescriptor> attributes = new ArrayList<AttributeDescriptor>(120);
// All views and groups have an implicit "style" attribute which is a reference.
AttributeInfo styleInfo = new AttributeInfo(
public void initializeStoreWithDefaults(IPreferenceStore store) {
store.setDefault(PREFS_BUILD_RES_AUTO_REFRESH, true);
store.setDefault(PREFS_BUILD_FORCE_ERROR_ON_NATIVELIB_IN_JAR, true);
- store.setDefault(PREFS_BUILD_SKIP_POST_COMPILE_ON_FILE_SAVE, false);
+ store.setDefault(PREFS_BUILD_SKIP_POST_COMPILE_ON_FILE_SAVE, true);
store.setDefault(PREFS_BUILD_VERBOSITY, BuildVerbosity.ALWAYS.name());