[rust-dev] tail-call performance issue?

Matthew O'Connor thegreendragon at gmail.com
Wed Jan 25 10:42:33 PST 2012


Hi,

I was reading https://github.com/mozilla/rust/wiki/Bikeshed-tailcall and
wondered about the statement "Tail calls cannot be implemented in general
without a serious performance hit for all calls". I've never heard this
before. tjc speculated it had to do with decrementing refcounts on normal
function returns, but our discussion didn't reveal any obvious reasons.

What is the reason for this performance hit on all calls?

Thanks,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20120125/33819fb7/attachment.html>


More information about the Rust-dev mailing list