Like everyone else, I'll often download 'dev' packages, some of which have little to no documentation on their APIs. In addition to that I of course have a million source repos floating around, since I often like to compile things from source and keep scripts handy to easily stay up-to-date with those projects. So what I'm getting at here is that I'd like to keep a set of tags files (or a single one) for all of the source code found on my box (for languages which ctags supports, of course).
This brings up three main questions in my mind:
- What is the most efficient way to do this in terms of disk I/O?
- What is the most efficient way to do this in terms of disk space usage?
- What is the most efficient way to do this in terms of CPU scheduling? Should this be a periodic task run by say, cron, or an on-demand task?
A little searching and I found a nice post here, the most promising idea of which seems to be "incrontab", or running cron jobs based on filesystem events rather than time periods. By combining the use of this tool with the correct selection of filesystem event triggers and some estimations of:
- Potential tag file size based on code base size (min-max)
- Potential running time / CPU resources consumed in tag file generation
No comments:
Post a Comment