Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
group search results by source package #1
seems I found the bug tracker for codesearch :-)
codesearch is already awesome, what would make it even more awesome to do archive wide greps and mass bug filings, is the ability to group the search results by source package and only show a summary per source package which can be expanded via a +
Just FYI: Complexity-wise, this is ≈ O(full-search), because nearly every file needs to be looked at.
In order to implement that feature, an entirely new code path needs to be implemented which uses short-circuits on source package level.
Depending on how long such a search query typically takes, it might be necessary to add some user interface to perform a long-running query. That is, the client should have a way to abort the query and see progress nearly as it happens.
I had an idea on how to make “batch” queries work:
Each service file should include an instance specifier (e.g. email@example.com) and run the entire stack, but with lower I/O and CPU priority, so that normal queries are not impacted. The user can then reliably cancel queries (by bringing down the stack) and doesn’t impact normal usage.
It should be verified that mmaping the same (index) file in two separate processes accesses the same memory in the kernel.