Skip to content

Commit 1e58f1b

Browse files
authored
Add a note about quadratic behavior in Config::native_unwind_info (bytecodealliance#10085)
While I don't think this would have solved bytecodealliance#10084 because it's not really anywhere you'd look once having such a problem I figure it's not harmful to mention this in the docs at least.
1 parent 7d78789 commit 1e58f1b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/wasmtime/src/config.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,12 @@ impl Config {
524524
/// - When targeting Windows, since the Windows ABI requires it.
525525
/// - By default.
526526
///
527+
/// Note that systems loading many modules may wish to disable this
528+
/// configuration option instead of leaving it on-by-default. Some platforms
529+
/// exhibit quadratic behavior when registering/unregistering unwinding
530+
/// information which can greatly slow down the module loading/unloading
531+
/// process.
532+
///
527533
/// [`WasmBacktrace`]: crate::WasmBacktrace
528534
pub fn native_unwind_info(&mut self, enable: bool) -> &mut Self {
529535
self.native_unwind_info = Some(enable);

0 commit comments

Comments
 (0)