[Github-comments] [geany/geany] Load only necessary tags on demand (#2546)

elextr notifications at xxxxx
Sun Jul 12 10:27:24 UTC 2020


Your analysis is correct as far as it goes, yes Geany loads _all_ the tags related to the language of the file being opened as soon as the first file of that language is opened.

This is because there is no way of knowing which tags to load, the tags files have nothing to indicate which includes they came from, and even if that was known, includes in the file being opened typically include includes recursively so Geany would have to recursively open all include files to find which tags to load, and even that can't be done with C because Geany has no knowledge of the include directories that are searched (the `-Ixxxx` options to the compiler commands).

Geany itself provides five language specific tags for a total of 1Mb and the C language one being 60kb.  

If the tags are installed by the Gentoo package I would suggest you need to discuss with them that they may be being a little _too_ helpful :grin:

If you installed all the tags, then if you use all those libraries in the files you work with, you are stuck, first opening will be slow, but as you noted all successive openings are fast.

Or if you don't need them all, you might rename or delete some to improve performance.  

Note that for different projects you can build different configuration directories which can have different sets of tag files included (and since this is Linux you can use hard links to save space for tag files that are used in many places).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2546#issuecomment-657203363
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20200712/2e2dec2a/attachment.htm>


More information about the Github-comments mailing list