PB's simple optimisations maybe a saving grace

Everything else that doesn't fall into one of the other PB categories.
Kruno
User
User
Posts: 31
Joined: Fri Apr 26, 2013 3:17 pm

PB's simple optimisations maybe a saving grace

Post by Kruno »

http://channel9.msdn.com/Events/Build/2014/4-587

It is a talk about compiler optimisations and how next generation CPUs are able to see further into the code than before, thus allowing certain optimisations to get in the way of a faster program.

I remember every so often Fred bringing up the topic of complexity of modern day CPUs in regard to optimisation, usually whenever someone is bothering him about it :oops:, and I thought this may be interesting to the people here.

On another note, I've been building more tools for my game, it has been jugging along nicely.
Thorium
Addict
Addict
Posts: 1305
Joined: Sat Aug 15, 2009 6:59 pm

Re: PB's simple optimisations maybe a saving grace

Post by Thorium »

Thats true, i also dont do heavy optimization because it may run faster on my CPU but slower on another. However PureBasic could realy benefit from SIMD. Some PB SIMD commands would be nice. Also PB could use the additional registers for preserving and stuff.

One example of breaking the performance is using self modifieing code. It was been used in the old days to speed up some loops. Today it totaly breaks the instruction prefetching and loop optimization build in the CPU. If the CPU detects self modifieing code it deactivates all loop optimizations resulting in slower code.
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: PB's simple optimisations maybe a saving grace

Post by davido »

Interesting. Thanks. :D
DE AA EB
coco2
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Re: PB's simple optimisations maybe a saving grace

Post by coco2 »

Interesting. Also what I like about PB is how fast the IDE loads up. I can open and close PB about 8 times while Codeblocks is loading up
Post Reply