Skip to content

Very fast Mid$() alternative for LotusScript for working with large Strings

License

Notifications You must be signed in to change notification settings

SamSirry/LotusScript-BigStringWalker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

LotusScript-BigStringWalker

Very fast Mid$() alternative for LotusScript for working with large Strings

Superior speed! Tested with strings up to 60 Million characters in size. Estimated to handle up to 100 Million characters before it becomes noticeably slow on today's hardware (as of 2017).

This class depends on Julian Robichaux's StringBuffer class (named here as "Buffer"). It can be obtained from here: http://www.nsftools.com/tips/NotesTips.htm#stringbuffer

Running the following sample code using Mid$() to extract indivdual characters can take 10s of magnitude more time to complete.

Sample code:

'This code loads a big string, then processes it character by character:
Dim BSW As New BigStringWalker

BSW.Load(MyBigString)

Dim x As Long
Dim Char As String

For x = 0 To BSW.Size-1
  Char = BSW.CharAt(x)
  Call ProcessChar(Char)
Next

About

Very fast Mid$() alternative for LotusScript for working with large Strings

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published