diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-07-07 09:09:25 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-07 09:09:25 +0530 |
commit | 75d2c045f79aee4f772cb235860e6ef340177a05 (patch) | |
tree | af410764bb2f78ccb668c029c4b17c3901aaceea /ext/web/02_event.js | |
parent | 679a0c428c2aeebdd5c23141d3653b8fbb9c41fc (diff) |
perf(ext/websocket): optimize server websocket js (#19719)
Split from https://github.com/denoland/deno/pull/19686
- timestamp set to 0 for server websocket events.
- take fast call path with op_ws_send_binary.
Diffstat (limited to 'ext/web/02_event.js')
-rw-r--r-- | ext/web/02_event.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/web/02_event.js b/ext/web/02_event.js index 7ccae1787..859da2121 100644 --- a/ext/web/02_event.js +++ b/ext/web/02_event.js @@ -200,7 +200,7 @@ class Event { currentTarget: null, eventPhase: Event.NONE, target: null, - timeStamp: DateNow(), + timeStamp: 0, }; // TODO(@littledivy): Not spec compliant but performance is hurt badly // for users of `_skipInternalInit`. |