views:

39

answers:

3

Hello,

I have this 100.000 files codebase that i need to tame and i need to very often search for the occurences of a specific function call or a function definition.

Currently with notepad++ it takes me more than 5 minutes to do the search.

Do you know of a programmer's editor that would make the job ?

Thank you for your help

Jerome Wagner

+2  A: 

Maybe you should use a specific search tool for the search, rather than a text-editor...

Depending on your platform, there are various tools available such as GREP (command line), Windows Search Service (which creates indexes of the files in advance to make queries faster) or even Google desktop search.

http://www.google.co.uk/search?q=file%20search%20tool

(Tip: Add Windows / Linux etc to the search)

Sohnee
100k files is definitely time for a search engine
bemace
@bemace, ...or documentation generator, see my answer
Unreason
A: 

Yes, Grep is good and popular to be integrated in many tool on many platform.
One free for win:http://www.pspad.com/

The BEST one I ever used is built into PSPad (www.pspad.com / freeware) it displays a list and you can change anything or all the strings, or search and see where they appear. You can also search specific directories only.

pinichi
A: 

grep should be most forward implementation of what you are looking for. I tested it on an older system with 11k source files and it took 20s.

Assuming avg file size of 1k you are dealing with 100MB of text. Assuming avg file size of 10k you are dealing with 1GB of text.

Searching that much data will take time.

If you expect to be much faster then 5 minutes you will need to build indexes.

There are specialized tools that will allow you to do that:

For more visit wikipedia

Unreason