ChrisS85/CGUI — Issue #37: Optimization ideas
Author: ChrisS85
Created: 2011-11-08 22:56:44+00:00
State: open

Some ideas to speed up things a little:

- Replace all uses of Control.ClassNN with Control.hwnd to avoid __Get() invocation. This works fine now with the latest AHK_L.
- Possibly remove some proxy objects. More speed against less safety against accidental overwriting of control/window properties.
- Store references to the control/window instead of manually acquiring them each time. To make sure that there are no issues with cyclic dependencies which can apparently cause problems with releasing objects from memory and to help with object releasing in general, ObjRelease() should be called for each reference and at each access it needs to check for the validity of the reference. I believe this will be faster than the current way, but it would need to be measured.

The ListView control needs some speedup (I'd say somewhere around a factor of 2-10) with handling its items. I did some stuff there previously but it's still bad.