VB5 runs twice slower then VB3. Why?
Posted on 1997-06-17
A Project was originally developed in Visual Basic 3.0
Now I am trying to upgrade it to VB 5.0. Beside user iterface it contains some calculations
( mostly with dates ( in string format like "12:34pm" ) manipulations )
which can last from several seconds to several minutes.
After conversion to VB 5 I realised that code ( bottleneck procedure ) runs 110% slower
( even in 32bit compiled version ) in comparison
with exactly the same code running in VB3 (p-code )version.
Tested code contains some calls to VB Run-Time Library
Functions ( DateAdd, Format ).
Even after two day of code optimisation for VB 5.0 I couldn't archive better result.
Please, can you try to explain me what is the reason of VB5 to be slower then VB3 and if possible your recomendations to make it faster