[LLVMdev] Iterator protocols
Duncan Sands
baldrick at free.fr
Tue May 13 01:23:27 PDT 2008
> I would imagine that for smaller sequences the Java protocol wins
> (because of the expense of unwinding), whereas for longer sequences the
> per-item overhead dominates. The question is, what's the cutoff point
> likely to be - how expensive is an unwind compared to, say, a regular
> function call. (I haven't tried to measure it because I'm not yet sure
> what I am measuring.) I'm just curious if anyone has an opinion on this.
I expect unwinding to be much more expensive than an ordinary function call.
Ciao,
Duncan.
More information about the llvm-dev
mailing list