News for hackers. Stuff that matters.
Re:Java Best Practices – String performance and Exact String... by Sandman on Thursday July 14, 2011 @04:44PM (#2765013)
Truth be told, I hoped for a bit more from this article. Ok, so now we know that the indexOf() approach works great on strings with the length of 1150000 characters or less. But at what point do other algorithms start outperforming indexOf()? In what circumstances (for example the size of the document, length of the pattern and so on) should I use one algorithm, and when should I use another?

Shame that the article didn't really answer these questions.

There are no comments on this comment yet.