User forums > Help

Slow perfomance on linux (Ubuntu Dapper)

<< < (11/13) > >>

Pecan:

--- Quote from: eranif on September 24, 2006, 10:42:19 am ---I forgot to post it, but I already solved my problem. My problem was excessive calling to TextWidth() function which caused huge performance degradation.
 
This slowed the typing in the editor only Linux machines ( I tried it on FC4/5 and Ubuntu) but did not cause any slow effects on windows.

This was called on OnChange notification

Eran


--- End quote ---

Where, what Onchange. What TextWidth()? Scintilla, Main, SDK, what Line?

eranif:

--- Quote from: Pecan on September 24, 2006, 01:48:11 pm ---
--- Quote from: eranif on September 24, 2006, 10:42:19 am ---I forgot to post it, but I already solved my problem. My problem was excessive calling to TextWidth() function which caused huge performance degradation.
 
This slowed the typing in the editor only Linux machines ( I tried it on FC4/5 and Ubuntu) but did not cause any slow effects on windows.

This was called on OnChange notification

Eran


--- End quote ---


Where, what Onchange. What TextWidth()? Scintilla, Main, SDK, what Line?

--- End quote ---

Hi,

On my first post, I complained of having similar problem (of very slow performance) on linux using other application that uses scintilla.

the problematic function, was a function named TextWidth(), which is a wrapper for wxDC::GetTextExtent.

This function, uses *alot* of CPU on Linux (and is hardly noticed on windows), and it was called alot on my application.

Once this function is removed from my application code, the problem was gone.
I wonder whether this function is the cause of the other problem.
Eran

troels:

--- Quote from: eranif on September 24, 2006, 03:45:55 pm ---This function, uses *alot* of CPU on Linux (and is hardly noticed on windows), and it was called alot on my application.

--- End quote ---
Probably related to this:
http://article.gmane.org/gmane.comp.lib.wxwidgets.devel/77308

sque:

--- Quote from: Game_Ender on September 24, 2006, 06:18:04 am ---sque, if the bug is affecting you so much I suggest you grab an Ubuntu live CD, and a precompiled version of codeblocks that has the issue and try it on as many computers as you can.  Maybe you can find some kind of hardware + software that causes the issue.

--- End quote ---

First of all the versions that I have tested (the last 6 months) had the same prob. Never tried the RC2
Otherwise I would stick with a working one, and I wouldn't whining ;)

That was a good idea with live cd, I go forward to download one (But only breezy ubuntu comes in a live cd). Anyway, I ll come with more results.

As for the TextWidth mystery... is it worth to look at? Should I try something?

Game_Ender:
You are mistaken and probably thrown off by the fact that there is no listing for a "Live CD" for Dapper.  The standard "Desktop" CD is actually a live CD.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version