---
title: "cscope 使用 -q 选项 搜索速度提升 100%"
author: "forever8tf"
date: "2013-10-09T22:07:13Z"
tags: ["Emacs", "cscope"]
categories: ["开源软件"]
slug: "cscope-q-100"
draft: false
lastmod: "2013-10-09T22:07:13Z"
id: 1953974
url: "https://forever8tf.iteye.com/blog/1953974"
---

cscope的功能不再赘述，在这里[**cscope**.sourceforge.net/‎](/admin/blogs/cscope.sourceforge.net/%E2%80%8E)  可以下载到。

 

生成数据库文件时使用 cscope -b -q -R 中的 -q 选项将使用高级搜索算法，直线算短搜索命中时间，不过索引文件比之前的要大，并且多了 cscope.in.out 与 cscope.po.out 两个文件。经过测试，搜索时间缩短100%

 

配合emacs xcscope 如虎添翼。