removed findLengthFast based on profiling results