Re: Playing with Entity System, performance and D.

2017-06-19 Thread ag0aep6g via Digitalmars-d-learn
On 06/20/2017 12:42 AM, SrMordred wrote: I took a deeper look into dub. "--build=release" make almost all optimizations flags on, except noboundscheck. There is a "--build=release-nobounds" and with it, the numbers got a lot closer (checked on another pc so will not post the numbers now) Note

Re: Playing with Entity System, performance and D.

2017-06-19 Thread SrMordred via Digitalmars-d-learn
On Monday, 19 June 2017 at 19:06:57 UTC, ag0aep6g wrote: For me, alias_fun and op_apply are very close. If anything, alias_fun seems to be slightly faster. Typical output (ldc2 -release -O3): Avoiding bounds checking makes it faster for me (but is unsafe of course): I took a deeper look

Re: Playing with Entity System, performance and D.

2017-06-19 Thread ag0aep6g via Digitalmars-d-learn
On 06/19/2017 07:42 PM, SrMordred wrote: I was playing around my ES and different ways of doing it with D. I end up with a performance test of alias func vs ranges vs opApply. code here: https://dpaste.dzfl.pl/a2eff240552f Results on my machine win 10 x64, compiling with: dub run --build=relea

Re: Playing with Entity System, performance and D.

2017-06-19 Thread MrSmith via Digitalmars-d-learn
You may find this interesting https://github.com/MrSmith33/datadriven

Playing with Entity System, performance and D.

2017-06-19 Thread SrMordred via Digitalmars-d-learn
I was playing around my ES and different ways of doing it with D. I end up with a performance test of alias func vs ranges vs opApply. code here: https://dpaste.dzfl.pl/a2eff240552f Results on my machine win 10 x64, compiling with: dub run --build=release --arch=x86 --compiler=ldc2 (unable to