From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.help Subject: Re: Navigating an enormous code base Date: Thu, 28 Apr 2022 15:39:40 +0800 Message-ID: References: <877d7aq5qy.fsf@cock.li> <87bkwmo56v.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14347"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (macOS 11.6.5) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:4AO6nZTaT+hW7LjofCRYnafc94A= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 28 09:51:41 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njyw9-0003b5-FB for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 28 Apr 2022 09:51:41 +0200 Original-Received: from localhost ([::1]:42348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njyw8-0004WN-6E for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 28 Apr 2022 03:51:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njyky-0003A1-Q7 for help-gnu-emacs@gnu.org; Thu, 28 Apr 2022 03:40:08 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:55518) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njykx-0003AO-D6 for help-gnu-emacs@gnu.org; Thu, 28 Apr 2022 03:40:08 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1njyku-0009Ul-I8 for help-gnu-emacs@gnu.org; Thu, 28 Apr 2022 09:40:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAElBMVEUAAAAAAP+LRRP0pGC+ vr7///+7mT1iAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMO DhglKe4AAAEsSURBVCjPbZNBboQwDEV/Cd4X9QJRThApmn0XYW+Jyf2v0m+HhqDBgiAe9rcTG7QH w/1Vn2Ar8gBb/ocywSN3qK9T3z4eFDB4eApocBpeBs1RSykoJd8gQcm8pGmHXFso3ajnmsqV0TnY DQkOfXUfN5NwaI7AWTVOyEhcu1aHmdWItHddUVUcUgUBCkitu8V6ditHVOVdqzl2EQ1ZVGTbdK0V 7cqn8vWzoU5Q/bF9Y/Y0cRU1xwkys5dJ+Dt6pBDWifcNQml8Gh2JVmPSoQzo7en0grswkxrUGYJ7 0hSxxAGr7ZMwYcHIzprpi7TENEE1xtiYxixRlCfPBsUUrwHD7uGIwATrbnODJcVrPpVn3hxiGloe m/S+z3CtuzUSMo83N4DPH+F0evwR3P4A2k+75838OKQAAAAASUVORK5CYII= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137057 Archived-At: On 2022-04-28 08:42 +0200, Marcus Harnisch wrote: > As far as my work pattern with Global/ggtags is concerned, I create a > full index rarely. Usually only when the repository can be expected to > have changed significantly (pull, merge with upstream, etc). > > Global can do single-file updates, which I think ggtags executes in > ¡®after-save-hook¡¯ or something, so your own changes will be tracked. > Creating the database with the sqlite3 backend is supposed to perform > much better with these partial updates. This is true. There is a customisable threshold ggtags-oversize-limit. I used to test ggtags regularly on the Linux kernel source and it was very fast IOW I was not disappointed. If source files are changed outside emacs for example by git pull, ggtags will notice and reindex. For example if M-. jumps to a location that is off I often M-, and then M-. again to trigger reindex immediately. HTH, Leo