Linked by Thom Holwerda on Thu 6th Sep 2012 21:32 UTC, submitted by MOS6510
Benchmarks "During the 4th Semester of my studies I wrote a small 3d spaceship deathmatch shooter with the D-Programming language. It was created within 3 Months time and allows multiple players to play deathmatch over local area network. All of the code was written with a garbage collector in mind and made wide usage of the D standard library phobos. After the project was finished I noticed how much time is spend every frame for garbage collection, so I decided to create a version of the game which does not use a GC, to improve performance."
Thread beginning with comment 534225
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[3]: yes... but why?
by Slambert666 on Fri 7th Sep 2012 09:09 UTC in reply to "RE[2]: yes... but why?"
Slambert666
Member since:
2008-10-30

Except in most projects better hardware will be cheaper than one month salary for a top programmer.


Except in most cases today the program you write starts out at using 2% of total CPU and then you spend a month getting to 1.8% ...

Performance outside of Databases and Games and sometimes embedded systems and web server is mostly not relevant today.

Reply Parent Score: 3

RE[4]: yes... but why?
by dorin.lazar on Fri 7th Sep 2012 09:58 in reply to "RE[3]: yes... but why?"
dorin.lazar Member since:
2006-12-15

Performance outside of Databases and Games and sometimes embedded systems and web server is mostly not relevant today.


You might be amazed, but performance matters. On the mobile phones, where it saves batter, on the server, where it's not always easy to add extra RAM or processing power. That 10% can be vital.

Performance matters, all the time.

Reply Parent Score: 2

RE[5]: yes... but why?
by moondevil on Fri 7th Sep 2012 10:56 in reply to "RE[4]: yes... but why?"
moondevil Member since:
2005-07-08

On mobiles, Objective-C is moving to ARC (reference counting) and WP8 is having C++ with the CX extensions which make use of reference counting, alongside the usual .NET runtime.

On the Android, while you can make use of the NDK, actually the whole userspace is Dalvik VM based, even when calling the APIs from C or C++. So the only way to avoid the GC is by using the NDK only APIs, which restrict you to games which don't interact with another applications.

Reply Parent Score: 3