Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimization ideas #37

Open
ChrisS85 opened this issue Nov 8, 2011 · 0 comments
Open

Optimization ideas #37

ChrisS85 opened this issue Nov 8, 2011 · 0 comments

Comments

@ChrisS85
Copy link
Owner

ChrisS85 commented Nov 8, 2011

Some ideas to speed things up 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant