diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-12-01 06:35:32 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-01 20:05:32 +0530 |
commit | 824cb485c542305d16e0b9dcfda0ce4a06cf5038 (patch) | |
tree | b85bdce59764246048a3d1f032c9137fa7347217 /tools/lint.js | |
parent | 98d062e3dcd8804bd959ea41f6a0103ccd87f283 (diff) |
perf(ext/websocket): skip Events constructor checks (#16365)
WebSocket internal events can bypass Event's webidl checks and
`ReflectDefineProperty` on the object value. Note, this intentionally
makes websocket events `isTrusted` configurable (not spec-compliant)
which hurts performance a lot.
Before:
```
Msg/sec: 167627.750000
Msg/sec: 168239.250000
Msg/sec: 169690.000000
```
After:
```
Msg/sec: 191065.500000
Msg/sec: 194745.250000
Msg/sec: 194746.000000
```
Diffstat (limited to 'tools/lint.js')
0 files changed, 0 insertions, 0 deletions