New Developers.. ? - Page 2

New Developers.. ?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Actually I just did some little tests comparing mono and gcc on a inner loop with float math and one with int math, and it appears the mono/C# combo is actually 15-40%* faster on the float test, and only 0-5% slower on the int test.

So I think you can say it's as fast as native code (which is as expected because it's compiled to native code before execution...), if not faster. (because it can test processor capabilities and optimize code specifically for the host processor)

* depending on gcc optimization flags
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

Problem arises when the compiler is not able to garantee safe array access and enables bounds checking for it. Then it becomes a lot slower than C++.
Post Reply

Return to “Engine”