ChessUSA.com TalkChess.com
Hosted by Your Move Chess & Games
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

A logging facility
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Flat
View previous topic :: View next topic  
Author Message
Jan Brouwer



Joined: 22 Mar 2007
Posts: 198
Location: Netherlands

PostPost subject: Re: A logging facility    Posted: Mon Mar 19, 2012 6:43 pm Reply to topic Reply with quote

diep wrote:
It's silly to even start an engine in C++, as you need to be hell of a C++ programmer to even 'make' it to the same speed in nps as a much worse programmer can do in C.


I have to disagree. There is nothing magical going on in C++ classes if you refrain from using polymorphism. Last year I ported the low level parts of my engine from C to C++, introducing classes for Piece, Move, and Board, carefully watching for performance regression. There were none, until I replaced some low level macro's with inline functions. I accepted those as I wanted to get rid of the macro's. The performance dropped a small percentage (I don't remember what, but it was less than 5%). Probably even these could have been avoided by watching the generate assembly, I suspect there were some casting operations added under water.
Back to top
View user's profile Send private message
Display posts from previous:   
Subject Author Date/Time
A logging facility Marco Costalba Sun Mar 18, 2012 10:23 pm
      Re: A logging facility Gary Sun Mar 18, 2012 11:56 pm
      Re: A logging facility Robert Hyatt Mon Mar 19, 2012 3:50 am
            Re: A logging facility Marco Costalba Mon Mar 19, 2012 7:18 am
                  Re: A logging facility Vincent Diepeveen Mon Mar 19, 2012 7:37 am
                        Re: A logging facility Marco Costalba Mon Mar 19, 2012 7:50 am
                              Re: A logging facility Vincent Diepeveen Mon Mar 19, 2012 8:22 am
                                    Re: A logging facility Jan Brouwer Mon Mar 19, 2012 6:43 pm
                                          Re: A logging facility Robert Hyatt Mon Mar 19, 2012 6:54 pm
                                                Re: A logging facility Jan Brouwer Mon Mar 19, 2012 8:00 pm
                                                      Re: A logging facility Marco Costalba Mon Mar 19, 2012 9:09 pm
                                                            Re: A logging facility Daniel Shawul Mon Mar 19, 2012 9:37 pm
                                                            Re: A logging facility Marco Costalba Tue Mar 20, 2012 8:30 pm
                                                Re: A logging facility Ben-Hur Carlos Langoni Wed Mar 21, 2012 2:16 am
                                                      Re: A logging facility Daniel Shawul Wed Mar 21, 2012 9:20 am
                                                            Re: A logging facility Ben-Hur Carlos Langoni Wed Mar 21, 2012 1:54 pm
                                                                  Re: A logging facility Daniel Shawul Wed Mar 21, 2012 3:38 pm
                                                            Re: A logging facility Marco Costalba Thu Mar 22, 2012 8:01 pm
                                                                  Re: A logging facility Daniel Shawul Thu Mar 22, 2012 10:48 pm
                                                                        Re: A logging facility Rein Halbersma Fri Mar 23, 2012 7:03 am
                                                                              Re: A logging facility Daniel Shawul Fri Mar 23, 2012 10:04 am
                                                                                    Re: A logging facility Rein Halbersma Fri Mar 23, 2012 12:32 pm
                                                                                          Re: A logging facility Martin Sedlak Fri Mar 23, 2012 1:00 pm
                                                                                          Re: A logging facility Daniel Shawul Fri Mar 23, 2012 2:05 pm
                                                      Re: A logging facility Robert Hyatt Wed Mar 21, 2012 4:36 pm
                                                      Re: A logging facility Mark Pearce Wed Mar 28, 2012 12:49 pm
                  Re: A logging facility Rein Halbersma Mon Mar 19, 2012 7:50 am
                        Re: A logging facility Marco Costalba Mon Mar 19, 2012 8:00 am
                              Re: A logging facility Rein Halbersma Mon Mar 19, 2012 8:09 am
                        Re: A logging facility Robert Hyatt Mon Mar 19, 2012 6:56 pm
      Re: A logging facility Daniel Shawul Mon Mar 19, 2012 7:52 pm
            Re: A logging facility Robert Hyatt Wed Mar 21, 2012 1:26 am
                  Re: A logging facility Daniel Shawul Wed Mar 21, 2012 9:00 am
      Re: A logging facility H.G.Muller Wed Mar 21, 2012 7:58 am
            Re: A logging facility Vincent Diepeveen Wed Mar 21, 2012 2:39 pm
                  Re: A logging facility H.G.Muller Wed Mar 21, 2012 5:29 pm
            Re: A logging facility H.G.Muller Thu Mar 22, 2012 8:11 am
                  Re: A logging facility Daniel Shawul Thu Mar 22, 2012 11:18 pm
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
Enhanced with Moby Threads