mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
perf: optimize ByteString checks, hoist server rid getter (#19452)
Further improves preact SSR and express benches by about 2k RPS. Ref https://github.com/denoland/deno/issues/19451
This commit is contained in:
parent
f99a849a5f
commit
848cda619e
2 changed files with 12 additions and 5 deletions
|
@ -682,8 +682,8 @@ function serveHttpOn(context, callback) {
|
|||
|
||||
// Run the server
|
||||
const finished = (async () => {
|
||||
const rid = context.serverRid;
|
||||
while (true) {
|
||||
const rid = context.serverRid;
|
||||
let req;
|
||||
try {
|
||||
// Attempt to pull as many requests out of the queue as possible before awaiting. This API is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue