Menu

#1248 slow code completion without alias import

open
5
2010-11-05
2010-11-05
No

When doing a code completion request on an imported module without an alias as:
from x import mod

and typing:
mod.
in the file, code completion freezes Eclipse for about 5 secs before popping the completion box.

However, if importing with an alias as:
from x import mod as mod
code completion box appears really fast.

Using PyDev for Eclipse 1.6.3.2010100513 org.python.pydev.feature.feature.group
(Files are on a network share) network usage is heavy during the request.

Discussion

  • Vincent Turcotte

    Running on Windows 7 Pro 32 bits
    Looks like it reads all the python files and folders under x everytime. (verified with sysinternals procmon.exe)

     
  • Fabian Pedregosa

    Same for me. Using the following code

    """
    from scipy import linalg
    linalg.cholesky
    """

    Makes eclipse freeze for a long time after the second line linalg.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.