PB 4.0 Performance

Everything else that doesn't fall into one of the other PB categories.
Thomas
Enthusiast
Enthusiast
Posts: 112
Joined: Sat Apr 26, 2003 8:45 pm

PB 4.0 Performance

Post by Thomas »

Because PB 4.0 goes for thread safety and new types, I was a bit afraid that all this new stuff would hurt performance somehow. But now that my chess program has been converted to the new PB 4.0 syntax, I have to admit that I'm quite impressed. Although some critical parts of the game are coded in assembler, the new compiler gives a 15% speed improvement. The size of the executable grows by 2%, but that's near to nothing. But there's a problem: one test position gives a different result. There must be a difference between 3.94 and 4.0 in some calculation or comparison. To find such a thing is a coder's nightmare... :wink:
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

have you checked on this?

http://www.xs4all.nl/~bluez/datatalk/pu ... evaluation

if it's a calculation, start spreading the brackets... :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Also note than as long you're not using the /THREAD switch (thread safe executable), all the libs/code generated is optimized for single threaded programs (like in 3.94).
Thomas
Enthusiast
Enthusiast
Posts: 112
Joined: Sat Apr 26, 2003 8:45 pm

Post by Thomas »

Thanks blueznl, you're guide is very useful. Found something, will post it in the bugs section since it's very weird.
Post Reply