Printf speed penalty

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

Printf speed penalty

Postby Fermin Serrano » 24 Oct 2008, 11:53

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
User avatar
Fermin Serrano
 
Posts: 72
Joined: 10 Apr 2008, 18:20
Location: Madrid (Spain)

Re: Printf speed penalty

Postby Harald Johnsen » 24 Oct 2008, 17:14

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.
User avatar
Harald Johnsen
 
Posts: 43
Joined: 20 Aug 2007, 17:01
Location: France

Re: Printf speed penalty

Postby Dann Corbit » 24 Oct 2008, 19:59

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.
Dann Corbit
 


Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 33 guests