summaryrefslogtreecommitdiff
path: root/ext/http/lib.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-03-08 21:08:54 -0400
committerGitHub <noreply@github.com>2023-03-09 01:08:54 +0000
commit0f9df733499da4dea563342fc19e842f04bd7a40 (patch)
tree80706ade73ecb407072fbce133065b2c7ce37cea /ext/http/lib.rs
parent25d98ca289af64f85759fe10c8808afbfb7011e3 (diff)
perf: don't add unload event listener (#18082)
This commit changes how "unload" event is handled - before this commit an event listener was added unconditionally in the runtime bootstrapping function, which for some reason was very expensive (0.3ms). Instead of adding an event listener, a check was added to "dispatchEvent" function that performs the same action (so it's only called if there's an event dispatched).
Diffstat (limited to 'ext/http/lib.rs')
0 files changed, 0 insertions, 0 deletions