Jayesh A Lalwani wrote:How long does split take?
Jayesh A Lalwani wrote:Did you use a HashMap or a HashSet? Just askin
Another thing to consider when evaluating HashSet is the number of collisions in your strings that need to be searched. For a truly random set, the search time on a HashSet should be O(1). However, if all of your input data collides (very unlikely), the performance can degrade to O(n)
There is a very small subset, and once the data is loaded I do simple iteration:
Jeff Verdegan wrote:Note also that for POSIX character classes, Java uses \p{class}, not [:class:], which is spelled out in the docs for java.util.regex.Pattern. Always worth reading before posting to a forum.