README.md

December 5, 2022 ยท View on GitHub

Speed up code with a factor 1000 using string buffering!

Description

The purpose of this code is to prevent performance leak when repeatingly appending text to a string "the normal way" eg. string1 = string1 & "text". By using stringbuffering you allocate a large ammount of zero-bytes to your string, and then uses the mid function to insert the text you want to append. The biggest gain by using stringbuffering is that you speed ud your code by a factor 1000 but it's allso harder to get your code to crash with a "Out of memory" error (IF YOU LIKE THE CODE, PLEASE VOTE!)

More Info

The string you want to append, and an index value, telling which buffer you want to append to.

Use:

AppendToBuffer MyString, iIndex

instead of:

String1 = String1 & Mystring

the entire string, being your the string plus the text you appended-

None as far as i know :-)

Submitted On2002-07-16 15:34:20
ByDavid Bue Pedersen
LevelAdvanced
User Rating4.8 (72 globes from 15 users)
CompatibilityVB 5.0, VB 6.0
CategoryString Manipulation
WorldVisual Basic
Archive FileSpeed_up_c1067697162002.zip