[7380] in Athena Bugs
Size & possible speed performance additions for xlogin
daemon@ATHENA.MIT.EDU (epeisach@ATHENA.MIT.EDU)
Mon Apr 1 10:12:48 1991
From: epeisach@ATHENA.MIT.EDU
Date: Mon, 1 Apr 91 10:12:31 EST
To: bugs@ATHENA.MIT.EDU
Cc: mar@ATHENA.MIT.EDU
When using Wcl, all widgets are registered which takes some time and
makes the root larger.
kangaroo% size xlogin.old
text data bss dec hex
622592 151552 81088 855232 d0cc0
kangaroo% size xlogin.new
text data bss dec hex
585728 143360 81056 810144 c5ca0
Stripped savings of 50K. (Numbers above are on the decmips)
All I did was remove all references to widgets that are not needed in
the AriRegAll.c
It appears to work with simple testing.
*** /tmp/,RCSt1a27065 Mon Apr 1 10:09:34 1991
--- xlogin/AriRegAll.c Mon Apr 1 10:00:28 1991
***************
*** 83,92 ****
--- 83,95 ----
/* Simple Widgets (Chapt 3) */
RCN("Command", commandWidgetClass );
RCP("commandWidgetClass", commandWidgetClass );
+ #if 0
RCN("Grip", gripWidgetClass );
RCP("gripWidgetClass", gripWidgetClass );
+ #endif
RCN("Label", labelWidgetClass );
RCP("labelWidgetClass", labelWidgetClass );
+ #if 0
RCN("List", listWidgetClass );
RCP("listWidgetClass", listWidgetClass );
RCN("Scrollbar", scrollbarWidgetClass );
***************
*** 97,102 ****
--- 100,106 ----
RCP("stripChartWidgetClass", stripChartWidgetClass );
RCN("Toggle", toggleWidgetClass );
RCP("toggleWidgetClass", toggleWidgetClass );
+ #endif
/* Menus (Chapt 4) */
RCN("SimpleMenu", simpleMenuWidgetClass );
***************
*** 105,112 ****
--- 109,118 ----
RCP("smeBSBObjectClass", smeBSBObjectClass );
RCN("SmeLine", smeLineObjectClass );
RCP("smeLineObjectClass", smeLineObjectClass );
+ #if 0
RCN("Sme", smeObjectClass );
RCP("smeObjectClass", smeObjectClass );
+ #endif
RCN("MenuButton", menuButtonWidgetClass );
RCP("menuButtonWidgetClass", menuButtonWidgetClass );
***************
*** 113,142 ****
--- 119,156 ----
/* Text Widgets (Chapt 5) */
RCN("AsciiText", asciiTextWidgetClass ); /* NB name */
RCP("asciiTextWidgetClass", asciiTextWidgetClass );
+ #if 0
RCN("AsciiSrc", asciiSrcObjectClass );
RCP("asciiSrcObjectClass", asciiSrcObjectClass );
RCN("AsciiSink", asciiSinkObjectClass );
RCP("asciiSinkObjectClass", asciiSinkObjectClass );
+ #endif
RCN("Text", textWidgetClass );
RCP("textWidgetClass", textWidgetClass );
/* Composite and Constraint Widgets (Chapt 6) */
+ #if 0
RCN("Box", boxWidgetClass );
RCP("boxWidgetClass", boxWidgetClass );
+ #endif
RCN("Dialog", dialogWidgetClass );
RCP("dialogWidgetClass", dialogWidgetClass );
RCN("Form", formWidgetClass );
RCP("formWidgetClass", formWidgetClass );
+ #if 0
RCN("Paned", panedWidgetClass );
RCP("panedWidgetClass", panedWidgetClass );
RCN("Viewport", viewportWidgetClass );
RCP("viewportWidgetClass", viewportWidgetClass );
+ #endif
/* Other Interestng Widgets (not in ref manual) */
RCN("ClockWidget", clockWidgetClass );
RCP("clockWidgetClass", clockWidgetClass );
+ #if 0
RCN("LogoWidget", logoWidgetClass );
RCP("logoWidgetClass", logoWidgetClass );
+ #endif
#undef RCN
#undef RCP