| || |
Keyboard freeze when editing
As my associate function libraries increase with code over time, I notice an decrease in QTP performance. Not while executing the scripts, but when I am typing code. For instance, I type:
And my cursor freezes right after the "x" instead of allowing me to immediately type a space. And now it stays frozen for about 30 seconds.
Anyone else experience this same issue and come up with a solution?
That is a know limitation.
As the function library size increases, you will see these kind of performance issues.
Work around is breakdown your Function library into pieces around 15-20K LOC.
The other alternative to edit function library is use other editors to edit, but you will not get syntaxs & annotations.
So better create reasonable size of function libraries.
This is one of the benefits of loading function libraries at run-time instead of associating them in the ide. Having small libraries that you associate on demand is the way to go rather than associating a bunch of functions that don't get used. Otherwise you could disable auto-complete as a work around.
This is not an issue with large assoc lib files, this is to do with the editor, you will see the same behaviour when you type a non-alphanumeric. If you type msgboxxxxxx then a space the issue will not happen until the space. To resolve this you need to uncheck your statement completion type settings.
I have 34 assoc lib files ranging between 2k & 10k lines in a test and only see this issue when those editor settings are checked,
Well it's related because when you have auto-complete on it has to parse all those associated files.
Peter, can you please let us know is there a better performance improvement when you uncheck "Statement Completion" checkbox under, Tools-> View Options -> General tab,
Uncheck "Statement Completion".
It is also advisable to load function libraries using
LoadFunctionLibrary "Your function library file path" than associating function libraries to your test.