Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
[Linux] Slower performance on opening than under wine
Jenna:
--- Quote from: libfab on May 12, 2009, 09:07:37 pm ---I did not find a unicode build of wx under either kubuntu repos or even wx apt repo.
--- End quote ---
All linux-builds, that not especially have "ansi" in the name should be unicode-builds.
libfab:
Jens,
I now have: wx-config --libs
-L/usr/local/lib -pthread -lwx_gtk2_richtext-2.8 -lwx_gtk2_aui-2.8 -lwx_gtk2_xrc-2.8 -lwx_gtk2_qa-2.8 -lwx_gtk2_html-2.8 -lwx_gtk2_adv-2.8 -lwx_gtk2_core-2.8 -lwx_base_xml-2.8 -lwx_base_net-2.8 -lwx_base-2.8
after uninstalling all debian wx packages and building wx from source.
Same building problem with your testbranch, however.
Attached is config.log
Best, Fab
[attachment deleted by admin]
Jenna:
I have the following wxwidgets-packages installed (all from apt.wxwidgets.org):
libwxbase2.8-0 , libwxbase2.8-dev , libwxgtk2.8-0 , libwxgtk2.8-dev , python-wxversion (not needed for C::B) , wx2.8-headers , wx2.8-i18n , wx-common
What you need at least to build C::B are the "-dev"-packages and their dependencies.
Your wx-config still gives you the libs and includes for an ansi-release. Either you did not build the unicode-version or it's not your default.
wx-config --list shows all available builds.
If you want to build a unicode-realease you have to run ./configure with the --enable-unicode parameter.
libfab:
Hi jens,
thanks for your patience, I had missed --enable-unicode on doing ./configure --help, due to eye fatigue...
So I finally made it. I built everything from source OK, and the running times are ...
./configure build : 90 s
./configure CXXFLAGS=-O3 LDFLAGS=-s build : 86 s
with g++-4.4.
Results are not markedly improved by building from source, yet it's far better than trunk.
I wish you every success with this branch.
Cheers, Fab
Jenna:
If you find the time, you can try the following change:
in src/sdk/editorcolourset.cpp, function void EditorColourSet::Apply(HighlightLanguage lang, cbStyledTextCtrl* control), line should be about 435 change
--- Code: --- if (defaults)
{
for (int i = 0; i < wxSCI_STYLE_MAX; ++i)
{
if (i < 33 || i > 39)
DoApplyStyle(control, i, defaults);
}
}
--- End code ---
to
--- Code: --- if (defaults)
{
int countStyles = 1 << control->GetStyleBits();
for (int i = 0; i < countStyles; ++i)
{
if (i < 33 || i > 39)
DoApplyStyle(control, i, defaults);
}
}
--- End code ---
It's not really tested yet, so some more people should have a look at it.
With this patch I need a little more than 40 seconds to load on linux and less than 30 seconds on my virtual w2k-machine.
It should not break anything, but as written, some more eyes should doublecheck it.
After some sleeping, I hope I find the time tomorrow to create a real patch and to phrase a good Subject to start a new topic, that as many users and devs as possible can check it.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version