I see, that makes sense, but I think that you might be better off with a hybrid approach: build an index first, and do real-time search on all files that have been changed, and thus haven’t been [re-]indexed yet. I’m not sure if any of the existing systems do that, but it’s worth checking out. Of course, if your codebase is relatively small, performance won’t be much of a problem...
An update for those who are curious: Ag is now the 11th most-starred C repository on GitHub. It’s more popular than memcached or Arduino. It will soon surpass XBMC to become #10. People freakin’ love it.
I see, that makes sense, but I think that you might be better off with a hybrid approach: build an index first, and do real-time search on all files that have been changed, and thus haven’t been [re-]indexed yet. I’m not sure if any of the existing systems do that, but it’s worth checking out. Of course, if your codebase is relatively small, performance won’t be much of a problem...
An update for those who are curious: Ag is now the 11th most-starred C repository on GitHub. It’s more popular than memcached or Arduino. It will soon surpass XBMC to become #10. People freakin’ love it.