tugrul / aspjson

JSON for ASP
34 stars 20 forks source link

Update JSON.vbs to use a buffer to create strings. #6

Closed RonaldZielaznicki closed 3 years ago

RonaldZielaznicki commented 3 years ago

https://www.codeguru.com/csharp/.net/net_asp/tutorials/article.php/c19367/VBScript-String-Concatenation-And-Why-It-Should-Be-Avoided-Like-The-Plague.htm

As discussed in this old article, which still holds true, concating strings after a certain length is extremely slow. This change looks to avoid that by using a buffer to hold onto the information before outputting it to a string.