From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Automatic (e)tags generation and incremental updates Date: Mon, 11 Jan 2021 01:09:16 +0200 Message-ID: <0e11163f-0be7-3fd0-614b-4cd6ce64adfb@yandex.ru> References: <779a6328-9ca5-202a-25a2-b270c66fe6dd@yandex.ru> <8fc5e96c-ebb8-c668-9b2a-c7c4ee54c0b9@yandex.ru> <83r1mwltob.fsf@gnu.org> <0bee9ab4-46bc-b6fd-97b6-e26cc80f1610@yandex.ru> <875z45dbm7.fsf@tromey.com> <1e9c9572-52ee-339b-78a2-731b9eb5f3de@yandex.ru> <871resd93f.fsf@tromey.com> <87sg78bmyy.fsf@tromey.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33129"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: Eli Zaretskii , john@yates-sheets.org, philipk@posteo.net, emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 11 00:10:46 2021 Return-path: Envelope-to: ged-emacs-devel@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 1kyjrA-0008UW-5w for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Jan 2021 00:10:44 +0100 Original-Received: from localhost ([::1]:46108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyjr9-0004N6-53 for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Jan 2021 18:10:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyjpw-0003Yk-BL for emacs-devel@gnu.org; Sun, 10 Jan 2021 18:09:28 -0500 Original-Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:37584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kyjpu-0007Do-Jn; Sun, 10 Jan 2021 18:09:28 -0500 Original-Received: by mail-wr1-x436.google.com with SMTP id i9so14595868wrc.4; Sun, 10 Jan 2021 15:09:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Dr1xqBs0lgDgJ2gXs1DHxKA4ARamDUaP49+96Ynfdy4=; b=gy3GuMiBZ4rEq+HuqYOCYfW/oooboyfgQX3PuN6kXxSYakujxUIMqWhyq0ZoX/eFMC alvOIkI2ogwgJ7nnTasfhQ/PErjB4W0QWFN5y8tCZDp8fu9TvngR8ZdX6XKrj5202aVa XrdzApHeU3v0EzFXlGxUb3A1Bq522IzBzKdTCi4TmMUxL3YRuEkcSr+nvc6MZlThLNcy BitJwQ7hAvaiPzG8gNR8yjJ5kcum+Iu/okJsKoxaiI2wJsQiu33NwQHkdknPdNlQ/CBY EUcrp60jrm9tVdG9Ze/IBEsy32D6XnNygPdi5q+Y0gVrZ2496+C6zZNZhZNuoppVgRd1 iPDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Dr1xqBs0lgDgJ2gXs1DHxKA4ARamDUaP49+96Ynfdy4=; b=LZqeJqTX8xEiFN/cbi2BGuEI+bzQaNlS+JiwkX5p7n2aF4mauFFVD+JEqI/8Nv0WAD GFIGRcaMRuIFYJaEnRPjQaHeFcMXinbFbra5FCtxHGSFI1WbzHucl3f3qR5BrFrDxj8K 2M7vPuswFySp+j3O3nm9/95agODgeNX+JgmViWl88MlAelrnrL9/9sWcPIpMBWjFHCkz O0OzbUv7yeGBcPIjgaoyfguipxLk1d7pI4y6DELkskaJoGil1yqySl2AZa+JAMj333YZ mh4SGaH9iex9aWi6sILzi2+D9SHMDoXD3Qo/3t0yp460B1n5F0X/zodCItXBpXptsnRZ yNlQ== X-Gm-Message-State: AOAM531ETRiKPy5xFioRZIwH1UiV26C/4BXF471NUnnOyuiK3IQ9+fw3 T0DbD5jaT4sUYEmtyy47xQw= X-Google-Smtp-Source: ABdhPJwauXCE19TWjaY2SdCnKrR0BERLP9SK7thLBjSmB6brgaCNmt8rUfg/92l1sHXxm2eW+8YXBg== X-Received: by 2002:a5d:58d7:: with SMTP id o23mr14024977wrf.288.1610320164534; Sun, 10 Jan 2021 15:09:24 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id u66sm20291055wmg.30.2021.01.10.15.09.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Jan 2021 15:09:23 -0800 (PST) In-Reply-To: <87sg78bmyy.fsf@tromey.com> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=raaahh@gmail.com; helo=mail-wr1-x436.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.012, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:262886 Archived-At: On 10.01.2021 21:39, Tom Tromey wrote: > Tom> Please try it on a non-trivial project before committing to something. > Tom> IME a lot of these things work fine for simple projects, but when I want > Tom> to use them on gdb or gcc, they are unusably slow. > > I built this branch & tried it today. I don't know if this machine is > just super fast or what, but it seems to perform well enough to use on > gdb. Thank you again for working on this. I'm glad. How big is the project? What do (benchmark 1 '(project-files (project-current))) and (length (project-files (project-current))) say? I take it, both the initial generation is fast enough, and, of course after-save-hook? I optimized the latter on mozilla-central. That just leaves the periodic updates logic as the main remaining big hurdle.