|
From: | Chris Beaham |
Subject: | speed of Obj-C vs. C++(slightly OT) |
Date: | Wed, 23 Apr 2003 23:00:44 +0200 |
Begin forwarded message:
On Wednesday, April 23, 2003, at 06:15 PM, Richard Frith-Macdonald wrote:On Wednesday, April 23, 2003, at 04:16 pm, Martin Häcker wrote:You could either use a C-Package for the heavy work, or you could do the backend in C++ and the frontend in Cocoa on OS X.Though that makes it impossible to port it to GnuStep the advantage would be that you get the best of both worlds (C++ computation/Obj-C fast and maintainable gui building)Sounds like you are propogating the myth that C++ is faster than ObjC ... Where like is compared with like, that's not the case, and in my experienceObjC is faster because it's simpler and you can therefore devote more time to good design and optimisation.
It may be more important to examine what compilers/optimizers that you have available to you. Each company, e.g. HP or Sun, makes their best effort to optimizer their native compilers for their CPU architectures, e.g. PA-RISC & SPARC, and this will certainly have a large impact on the size and speed of the generated code. Maybe larger than the actual differences in the source code and the subsequent method invocations and function calls. These native compilers support C & C++, however (to my knowlegde) no Objective-C. Therefore using the GNU compiler on such a machine may slow you down even if you are using plain old C, not to mention C++ or Objective-C. Take a look at what the different tools have to offer (if you have a choice that is).
Greetings, Chris not-loud-enough@gmx.net Chris Beaham Manager Software Development & Engineering chris.beaham@pcs-ag.com development@pcs-ag.com PCS Process Control Systems AG Werkstrasse 8 CH-8623 Wetzikon Switzerland Tel. +41 (0) 1 931 22 44 Fax +41 (0) 1 931 22 53 Email: office@pcs-ag.com, support@pcs-ag.com Web: www.pcs-ag.com
[Prev in Thread] | Current Thread | [Next in Thread] |