cloudflare / worker-template-router

231 stars 84 forks source link

Update index.js #24

Closed ChStark closed 3 years ago

ChStark commented 4 years ago

Taking Router instance creation outside of handler to avoid the creation of an instance on each request

emindeniz99 commented 3 years ago

Each request creates its own block, so I think this improvement doesn't make sense of speed. Is it wrong?

simplenotezy commented 3 years ago

Curious to know this as well, @ChStark did you do any benchmarks?