VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

SpeedString concatenation

Robin Schuil  (6 Submissions)   String Manipulation   Visual Basic 3.0   Advanced   Wed 3rd February 2021

The SpeedString class boost performance on string concatenation. Almost every VB developer uses strValue = strValue & NewData as concatenation. The SpeedString class does the same, but a few hunderds times faster (something up to 1000 times).
This project demonstrates the use of my SpeedString class and compares the execution times of both methods.

Inputs
Syntax: SpeedString.Append StringValue, [StringLength] The length is optional. Note that it also provides a faster method for the LEFT method.

Returns
Syntax: SpeedString.Data Returns as string containing the concatenated data.

API Declarations
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)

Rate SpeedString concatenation (11(11 Vote))

Download SpeedString concatenation

SpeedString concatenation Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters