Cost of `catch_unwind`

⚓ Rust    📅 2025-09-20    👤 surdeus    👁️ 9      

surdeus

Warning

This post was published 41 days ago. The information described in this article may have changed.

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Cost of `catch_unwind`

Can anyone explain to the the cost of catch_unwind on x86_64 and arm64 machines? Would it be fine to call on every poll of the average io bound Future? What about tight loops?

Does it bloat the abi of the function (like adding some other parameters etc), some instructions (hot/cold path?), or maybe it will just add something to .data?

1 post - 1 participant

Read full topic

🏷️ Rust_feed