On Sunday, September 29, 2002, at 04:40 pm, Ruslan Zasukhin wrote:
> Okay, Obj-C has more runtime support....looks to be like in SmalTalk.
Yup.
> But what about performance of this ?
It's not bad. objc_msgSend is some highly optimized assembly, for example. And there are other tricks you can use if you want to go blazingly fast, like caching IMPs and calling method implementations directly.
> On the other hand sometimes important to have feature, then consider > its > performance.
Yeah. You're not likely to query the runtime too heavily in normal use, anyway.
> Then other question. Do you really use this tricks with runtime in your > development?
From time to time, and the Cocoa frameworks use them extensively. For example, I'm not sure how you would implement delegate-like functionality in C++...
> Sounds to me like something very high level, meta language...
But since it's also a superset of C, you can just drop down to that and start pushing around structs if you feel that need, that need for speed. Or do some inline assembly.
-- Finlay ©2002 Finlay Dobbie |