Re: Kernel Development & Objective-C
- From: Kyle Moffett <mrmacman_g4@xxxxxxx>
- Date: Fri, 30 Nov 2007 14:35:34 -0500
On Nov 30, 2007, at 13:40:07, H. Peter Anvin wrote:
Kyle Moffett wrote:With that said, there is a significant performance penalty as all Objective-C method calls are looked up symbolically at runtime for every single call.
GACK!
At least C++ has vtables.
In a tight loop there is a way to do a single symbolic lookup and just call directly through a function pointer, but typically it isn't necessary for GUI programs and the like. The flexibility of being able to dynamically add new methods to an existing class (at least for desktop user interfaces) significantly outweighs the performance cost. Any performance-sensitive code is typically written in straight C anyways.
Cheers,
Kyle Moffett
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- Kernel Development & Objective-C
- From: Ben Crowhurst
- Re: Kernel Development & Objective-C
- From: Lennart Sorensen
- Re: Kernel Development & Objective-C
- From: Kyle Moffett
- Re: Kernel Development & Objective-C
- From: H. Peter Anvin
- Kernel Development & Objective-C
- Prev by Date: Re: [patch 03/10] percpu: Make the asm-generic/percpu.h more "generic"
- Next by Date: capabilities-introduce-per-process-capability-bounding-set.patch breaks FC6 Avahi
- Previous by thread: Re: Kernel Development & Objective-C
- Next by thread: Re: Kernel Development & Objective-C
- Index(es):