VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Create string in VB more than 200 times faster See code

by jbay101 (7 Submissions)
Category: Object Oriented Programming (OOP)
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (14 Votes)

This article shows how to use the OLE Automation DLL to create a string without relying on VB to do it. When VB creates a string, it automaticly fills it with data (which takes a great deal of time when dealling with large strings). This way bypasses VB and creates the string itself, without filling it with data. The result? 200 times faster! I have updated the tutorial to include Example 1 re-written using the faster method. The code includes a benchmark and the function described below. Please vote or leave a comment!

Rate Create string in VB more than 200 times faster See code

Download Create string in VB more than 200 times faster See code

Download Create string in VB more than 200 times faster See code (6 KB)

Create string in VB more than 200 times faster See code Comments

No comments have been posted about Create string in VB more than 200 times faster See code. Why not be the first to post a comment about Create string in VB more than 200 times faster See code.

Post your comment

Subject:
Message:
0/1000 characters