pkg_grep_summary was partially reimplemeneted in C for better performance.
At the moment exact, prefix and suffix search strategies
are implemented in C.