Tools Links Login

Super Fast InStr Replacement

This code runs as much as 5000 times faster than VB's InStr function! I've used the Boyer-Moore algorithm which is the fastest string search algorithm in the world. The longer strings you feed this function, the harder it wails on VB's. Switching to vbTextCompare is like lighting the afterburners. Please vote and leave feedback!

Original Author: Chris Lucas

Side Effects

Do not us vbTextCompare mode if one or more of your strings contain ligatures (Æ,æ,Œ,œ,Þ, and þ), the German sharp s (ß), or non-ANSI characters. These characters are considered two characters in vbTextCompare mode and are not easily accounted for by the Boyer-Moore algorithm.

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 80 times

Categories

Visual Basic 6

Attachments

Super_Fast485971142002.zip
Posted: 9/3/2020 3:45:00 PM
Size: 2,826 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.