Ticket #44 (new defect)

Opened 7 months ago

Last modified 7 months ago

Somtimes completion proposals takes too long to complete

Reported by: Anonymous Assigned to:
Priority: major Component: descent.core
Version: 0.5 Keywords:
Cc:

Change History

02/10/08 14:48:00 changed by fraserofthenight

Well, we're always looking to improve the performance, but this is often hard to considering the model Descent is built on. Here are some things to try in the meantime:

1. Are you using files with public imports? Importing a ".all" file will force every file imported to be front-end-compiled. 2. Are you using any heavy CTFE or recursive templates? That tends to bog things down in the frontend. 3. Does it take >30 seconds to compile in DMD?

If none of that is true and you're still having serious speed problems, it may be a caching issue or something else easily cleared up. Please send an example or point us to a repository if you can, since that'll help us determine what pieces of code can take unreasonable amounts of time.

02/11/08 16:39:30 changed by doob

I have this code:

import dwt.widgets.Display;
import dwt.display.Shell;

void main ()
{
    Dis...
}

I start the code completion after the three dots. None of the above imports have any public imports. One is around 2300 lines of code and the other around 4500. I have the whole dsss\include\d in "Compiler system libraries". That example takes under 5 seconds to compile.

02/12/08 07:08:46 changed by asterite

I tested that same code, and it showed me the proposals right away, so it might happen randomly. Anyway, I'll completely rewrite the semantic analysis for the next version since I found out it's not quite what JDT does.