ggreer/the_silver_searcher — pull request #82 by c4rlo (2012-10-01 20:11:11+00:00)
Title: search_buf() optimizations (malloc(), is_binary())

- Do not `malloc()` the match structs until we have a match. Exception: if matches are to be inverted, must always have space for at least one match.
- Do not `malloc()` the offset_vector, as it only needs to be of fixed size 3.
- Only determine whether the file is binary if that information is needed.