Page 1 of 1

Printf speed penalty

PostPosted: 24 Oct 2008, 11:53
by Fermin Serrano
how much a printf statement penalice performance?

suppose I print a printf statement each new root move is been analized. First seconds will show a lot of lines because is fast to calculate low depths.
How much would this penalice performance, i.e. in blitz games?

thx

Re: Printf speed penalty

PostPosted: 24 Oct 2008, 17:14
by Harald Johnsen
You are spaming the GUI. I don't think that its is a good idea, just don't send any crap in the first second of thinking.

HJ.

Re: Printf speed penalty

PostPosted: 24 Oct 2008, 19:59
by Dann Corbit
Crafty has a nice feature called noise.
With the noise parameter, you can set when your engine will start to babble about what it sees:
noise n........................ no status until n nodes searched.

So if you make n a high enough default, then your engine won't say too much.
But if you need to see the fine details, just set n to 1.