[En-Nut-Discussion] Optimizing nutconf

Harald Kipp harald.kipp at egnite.de
Sun Jan 11 10:42:28 CET 2009


Ole Reinhardt wrote:
> Hi Thiago,
> 
>>    I'm running on a 2.8Ghz Quad, and still takes some 3 seconds to
>> tick a checkbox, wonder how nutconf is doing for others.

Right Thiago, since the Configurator moved from static to dynamic
scripting, the performance suffered significantly. Though, updates never
took more than a second here.

When I implemented that, I had enough trouble getting it done, so I
accepted the decline in performance. Nevertheless, we should look into it.


> I just build the HEAD version of NutConf on my Ubuntu 8.10 machine and
> tried to reproduce your problems. Unfortunately I ended up in a
> segmentation fault just after selecting a configuration file. So it does
> not work at all for me.

Ole, are you running KDE4? There seems to be a problem with this KDE
version and the wxWidget file open dialog. Last time I googled for that,
only very few reports about this issue appeared and no solution...

Thiago added an abstract class, which simplifies the code for scanning
directories. Unfortunately

 g++ (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)

doesn't aacept line 723 of nutconfdoc.cpp:

 virtual ~CAbstractDirCopyTraverser() = 0
 {
 }

IMHO it is not allowed to have both, a pure-specifier and the
definition. Although, the MS compiler accepted that statement. Do we
need the  declaration of the destructor at all?

I should add, that my knowledge about C++ is not sufficient to
understand all the details. After removing the destructor, it seems to
work, but I'm not sure whether this may break something else.

Harald



More information about the En-Nut-Discussion mailing list