BUG: String Manipulation Slower in Compiler Vs Interpreter (20456)
The information in this article applies to:
- Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0
This article was previously published under Q20456 SYMPTOMS
String manipulation functions can be several times slower in compiled
programs than in interpreted programs. The speed of the compiled example
below can be improved by 50 percent by compiling with the Microsoft
QuickBasic Compiler version 1.0 for Macintosh, instead of compiling with
the earlier Microsoft Basic Compiler version 1.0. However, the example
compiled in QuickBasic is still five times slower than the interpreted
version.
CAUSE
This speed problem is partly due to a tradeoff of code size versus speed.
For example, the interpreter offers efficient extra code to handle strings
quickly; the compiled program offers smaller code size but less efficient
string handling. The interpreter itself takes much more disk space than the
independent, compiled program.
STATUS
Microsoft has confirmed this to be a bug in Microsoft QuickBasic version
1.0 for the Macintosh. We are researching this problem and will post new
information here in the Microsoft Knowledge Base as it becomes available.
Modification Type: | Minor | Last Reviewed: | 1/9/2003 |
---|
Keywords: | kbbug KB20456 |
---|
|