Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » A little proposal on code analysis
|
|
|
|
Re: A little proposal on code analysis [message #21294 is a reply to message #21293] |
Tue, 12 May 2009 08:46 |
|
mirek
Messages: 14039 Registered: November 2005
|
Ultimate Member |
|
|
Mindtraveller wrote on Tue, 12 May 2009 02:28 |
luzr wrote on Mon, 11 May 2009 12:19 | Another possibile reason of lag:
In ide/idewin.cpp, GUI_APP_MAIN comment out
ActivateUsrLog();
Mirek
|
Sorry, but bug is still there. But IMO it (lag) became smaller.
I also noticed that lag heavily depends on overall size and size of dependencies for ALL included and opened files, especially for the current one.
Turning off any applications and opening only one small .h file with only one CtrlLib.h/CtrlLib.h included, made bug almost disappear.
|
OK.
First, one more possibility (but given what you wrote above, unlikely):
void Ide::Periodic()
{
// CheckFileUpdate();
SetIcon();
if(debugger && debugger->IsFinished() && !IdeIsDebugLock())
IdeEndDebug();
}
EDIT: Before bothering, try the patch below...
Second, we should decide if it is size of file or size of project or both.
Analyzing the code, I see no reason of influence of size of project (in fact, I believe that one was there and was fixed in the very first patch...).
Maybe you could try again plain CodeEditor and paste some very long file into it?
Thanks.
Mirek
[Updated on: Tue, 12 May 2009 09:08] Report message to a moderator
|
|
|
Re: A little proposal on code analysis [message #21296 is a reply to message #21294] |
Tue, 12 May 2009 09:07 |
|
mirek
Messages: 14039 Registered: November 2005
|
Ultimate Member |
|
|
OK, what about this:
Quote: |
void WorkspaceWork::TouchFile(const String& path)
{
if(!showtime)
return;
Time tm = GetSysTime();
String n = GetFileName(path);
for(int i = 0; i < filelist.GetCount(); i++) {
FileList::File f = filelist[i];
if(f.name == n && path == SourcePath(GetActivePackage(), f.name))
filelist.Set(i, f.name, f.icon, f.font, f.ink, false, 0,
Null, SColorMark, Null, Null, Null, SColorMark);
}
}
|
(problem fixed here would cause lag if you are in package with a lot of files...)
Mirek
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 18:19:32 CEST 2024
Total time taken to generate the page: 0.03411 seconds
|