I second the notion that regular expressions are a better choice, especially using precompiled patterns.
I vaguely recall that a RE serach without metacharacters should be fast. There is a short statement implying this in my camel book in the Efficiency section.
You can always do some performance benchmarking to verify.
In reply to Re^4: Need Speed:Search Tab-delimited File for pairs of names
by wazat
in thread Need Speed:Search Tab-delimited File for pairs of names
by mnnb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |