Skip to content
Home » performance testing

performance testing

String Functions Performance Considerations

I’ve been doing some tests and I see Instr$ in LotusScript is still a lot slower when you start searching in the middle of the string. I wrote an SPR about this sometime back. The same is true of Mid$ – I wrote a timing test that uses Mid$ to get the 1st character of a string as opposed to the 27000th. The latter takes much longer, and I don’t understand why. According to the help docs it’s two bytes per character, so it should be trivial to determine the location of a character from its number position. Timing test results What’s going on here? How can it take so much longer to access a string starting at a later position? It must be looping to get to the right starting position instead of just… Read More »String Functions Performance Considerations