Skip to content
Myr

perf: tweak

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by Yusuke Wada · parent eaef358 · Browse files · 2 files+2 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−3 removed

  • other:+2 added−3 removed

2 files+2 added−3 removed

modified:src/router/trie-router/node.ts+2 added-1 removed
148 unmodified lines
149 if (astNode) {150 handlerSets.push(...this.getHandlerSets(astNode, method))151 nextNodes.push(astNode)152 }153 continue154 }155156 if (part === '') continue157
53 unmodified lines
211 if (res.nodes.length === 0) {212 continue213 }214 handlerSets.push(...res.handlerSets)214 params = Object.assign(params, res.params)215 params = { ...params, ...res.params }216 tempNodes.push(...res.nodes)217 }218219 curNodes = tempNodes
15 unmodified lines
modified:src/hono.ts-2 removed
214 unmodified lines
215 }216 throw err217 }218219 if (!context.res) return context.notFound()220219 return context.res220 }221222 async handleEvent(event: FetchEvent): Promise<Response> {
18 unmodified lines