VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Create string in VB more than 200 times faster See code

jbay101  (7 Submissions)   Object Oriented Programming (OOP)   Visual Basic 5.0   Advanced   Wed 3rd February 2021

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 (15(15 Vote))

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

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

No comments yet — be the first to post one!

Post a Comment

0/1000 characters