Yusuke Wada

Results 1706 comments of Yusuke Wada

Hi @ShravanSunder Please give us a code that can work with a minimum of that.

No response, I'll close this.

Honestly, I'm not familiar with OpenTelementry. So I'll be happy if someone works on it!

Hi @usualoma Interesting approach. I'm glad you are interested in file-based routing! > Routing that falls back to TrieRouter is not generated; can assume RegExpRouter. > Basically, we can know...

@usualoma For example, in this project that provides file-based routing: https://github.com/yusukebe/file-base-routing-framework We can write `src/framework.ts` using `PreparedRegExpRouter` as follows: ```diff diff --git a/src/framework.ts b/src/framework.ts index d75e3b9..e781263 100644 --- a/src/framework.ts +++...

> I guess you mean "finish initializing the router before the first request comes in". Yes, I mean that. But, I think we can make it like the following: ```diff...

> Therefore, we need to somehow work with the bundling tool to remove the following code. Ah, I didn't write that, but it imports them like this. So, it does...

> Yeah, I know, but `buildInitParams()` depends on `RegExpRouter()`, so when we import `buildInitParams()`, it bundles the following source code. > And `buildInitParams()` is as heavy as the normal `RegExpRouter()`...

In addition, It is a good idea to have a "RegExpRouter" preset for file-based routing.

@usualoma This is a very interesting idea, whether we use it or not "now"! > The results of my benchmarks are as follows: "node" and "deno" have a large overhead...