Skip to Main Content
HCL Domino Ideas Portal

Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino Page

Status Under Consideration
Workspace Domino Designer
Categories LotusScript
Created by Guest
Created on Oct 18, 2018

Make LotusScript Instr faster for iterating thru all matches in a long string

The current algorithm for Instr is very inefficient. If you give it a starting position for the search, it doesn't actually start searching at that location. Instead, it searches from the beginning of the string, and each time it finds a match, checks whether that match begins at or after the specified starting point. This makes a search of a long string with high starting position very slow, especially when you're trying to iterate all the instances of the substring, since you have to call it again and again, with it getting slower each time as it gets farther along.

It would be SO EASY to fix this function to just start its search at the specified position.

  • Attach files
  • Admin
    Thomas Hampel
    Reply
    |
    Oct 27, 2018

    Moving to Domino Designer category