Nerd-sniped: Project Search
Blog post from Zed
The discussion revolves around optimizing the project search feature in Zed, focusing on improving its performance without sacrificing long-term maintainability. Despite the team's dedication to performance, they avoid extreme measures like delving into compiler-generated machine code or hand-writing SIMD. The solution involved restructuring the task hierarchy to prioritize confirming matches in files over scanning new files for potential matches, thus enhancing responsiveness. While this approach improved responsiveness and throughput, it highlighted ongoing challenges, such as latency in remote projects and UI rendering issues when handling numerous matches. The team continues to strive for parity with ripgrep, a popular search tool, while acknowledging the complexity of project search and the need for further improvements.