bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] Removal of non-threaded code


From: Øystein Johansen
Subject: Re: [Bug-gnubg] Removal of non-threaded code
Date: Tue, 28 Apr 2009 22:01:23 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

Christian Anthon wrote:
> Hi all,
> 
> I'm considering to remove the non-threaded code. The threaded code
> should be able to run without threads with minor adjustments (replacing
> thread-safe operations with equivalent unsafe ones or NULL operations as
> appropriate), and we wouldn't have two sets of code to keep working at
> the same time. There may still be a small time-penalty involved. Anybody
> with a strong opinion against this?

Hi!

I actually usually compile without thread support. I feel it's safer and
 is more stable, and therefore prefer to compile without threads. I can
also see that my own builds, without thread support, is considerably
faster (in terms of eval/sec) than a single threaded build supporting
threads. I therefore believes the thread code adds some overhead.

The numbers in evals/sec
My own non-thread build: ~56600 eval/sec
MaX build single thread: ~48100 eval/sec

Of course I'm not convinced that the eval speed test is a fair test in
this context, however it is an indicator that there is some overhead
involved.

I can really see the benefit of having only one code to work at, but I
would still love to be able to compile without threads.

-Øystein

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]