PRB: Poor Performance with the GoSub Statement (174808)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q174808 SYMPTOMS
A project compiled in native code shows poor performance. This behavior
occurs because the project contains calls to subroutines using the GoSub
statement.
CAUSE
The GoSub statement has not been optimized in Visual Basic.
RESOLUTION
Instead of using sub-routines, use functions in a module or place your code
inside an event.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbCompiler kbprb KB174808 |
---|
|