[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [computer-go] Pattern Matcher
On an altogether note: when running the same program in debugging mode, in
Java there's only a minor performance hit. In C++ the difference is more
like 10 times slower in debugging mode. Why is this?
Does java debugging use the reflection API? Maybe that helps?
Many C++ libraries (e.g. the STL) makes many assumptions about what an
optimizing compiler will get rid of; without optimizations the code can be
quite inefficient. G++ allows using optimization in debug mode.
I've not particularly noticed a slow-down due to running with debug info
compiled in but I get over an order of magnitude slow-down with asserts on
as I use asserts as pre-conditions at the start of every function, and
commonly throughout a function as well.
Darren
_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://www.computer-go.org/mailman/listinfo/computer-go/