Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocompletion is slow and sometimes it is blocking Sublime Text for ever with 0% CPU usage #1226

Open
evandrocoan opened this issue Sep 18, 2017 · 2 comments

Comments

@evandrocoan
Copy link
Contributor

evandrocoan commented Sep 18, 2017

The auto completion provided by the class:

class LatexCwlCompletion(sublime_plugin.EventListener):
    '''
    Event listener to supply cwl completions at appropriate points
    '''

    def on_query_completions(self, view, prefix, locations):
        if not is_cwl_available():
            return []

Is too slow to show up, and some times it just hangs Sublime Text for ever with 0% CPU usage. To recover from this hang I need to kill plugin_host.exe and then Sublime Stops hanging, so I can save my work and restart Sublime Text.

Noticed my computer has only 1GHz (2.67GHz underclocked 67%), adding return [] fixes the problem of slow show up auto completion and indefinite hanging which can happen some times:

class LatexCwlCompletion(sublime_plugin.EventListener):
    '''
    Event listener to supply cwl completions at appropriate points
    '''

    def on_query_completions(self, view, prefix, locations):
        return []
        if not is_cwl_available():
            return []
@r-stein
Copy link
Member

r-stein commented Sep 18, 2017

You can also disable the cwl completions by setting [command_completion](https://github.com/SublimeText/LaTeXTools/blob/st3-3.14.2/LaTeXTools.sublime-settings#L64] to "never". Do you have a single or multi-core cpu?

@evandrocoan
Copy link
Contributor Author

Thanks. It has has 4 cores. With slow I mean Sublime Text hangs a few seconds before them to show up. The computer characteristics are:

  1. Processor Intel i3-390M @2.67 GHz: (Underclocked to 1 GHz)

    C:\>echo %PROCESSOR_ARCHITECTURE% %PROCESSOR_IDENTIFIER% %PROCESSOR_LEVEL% %PROCESSOR_REVISION%
    AMD64 Intel64 Family 6 Model 37 Stepping 5, GenuineIntel 6 2505
    

    image

  2. RAM 8 GB DDR3 @1067 MHz:

    C:\>wmic MemoryChip get BankLabel, Capacity, MemoryType, TypeDetail, Speed
    BankLabel  Capacity    MemoryType  Speed  TypeDetail
    BANK 0     4294967296  24          1067   128
    BANK 2     4294967296  24          1067   128
    

    image

  3. GPU Intel(R) HD Graphics 64 MB of RAM

    C:\>wmic path win32_VideoController get name
    Name
    Intel(R) HD Graphics
    

    image


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants