[Github-comments] [geany] Parsing long files (#791)

philip r brenan notifications at xxxxx
Tue Dec 8 00:47:50 UTC 2015


Following your suggestions:

*Disable real-time symbol parsing* prevents the problem from occurring.

* Disable symbol parsing at save:* I saved with an extraneous { in place
and the save was very slow.  However this is less of a problem because I
can control when a save occurs and just not save when the extra the bracket
is outstanding.

*Disabling all file type-specific features* works as suggested - this was
how I was getting around the problem earlier but it takes time to set and
unset and one forgets to do it in advance and so this is an error prone
process.

I appreciate your help!

Thanks,

Phil

Philip R Brenan

On Mon, Dec 7, 2015 at 4:23 PM, Colomban Wendling <notifications at github.com>
wrote:

> Hum, that's odd. 4.8M doesn't look very large, and certainly nothing that
> would require 5 minutes to process. Could you provide the file so we can
> check what's going on?
>
> Also, which version of Geany are you using, and on which OS?
>
> Anyway, to work around this you can try a few things:
>
>    - Disable real-time symbol parsing (set *Edit → Preferences → Editor →
>    Completions → Symbol list update frequency* to 0). This would prevent
>    updating the Symbols pane while typing, so if it's the bottleneck it should
>    help a lot. Note however that the symbols will still be extracted when
>    saving the file.
>    -
>
>    If the above helped but it's still too slow when saving the file, you
>    can disable symbol parsing for the Java filetype by setting the
>    tag_parser settings option to an empty value in *filetypes.java*:
>
>    [settings]
>    tag_parser=
>
>    This is kind of a hack but it should disable all symbol parsing for
>    Java files.
>    - The nuclear option, disabling all filetype-specific features
>    (highlighting, symbol parsing, etc.), is to use the filetype None for Java
>    files.
>
>> Reply to this email directly or view it on GitHub
> <https://github.com/geany/geany/issues/791#issuecomment-162575825>.
>


---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/791#issuecomment-162717799
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151207/1facdc31/attachment.html>


More information about the Github-comments mailing list