You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Optimize Router.use() to map only the looked-up method entry #188
In the Router.use() method implementation, there's a TODO comment identifying a potential optimization:
While correct, it would be enough to map only the entry for the method that is actually looked up. However this is not easily achieved with the current implementation.
Currently, when applying a middleware transformation via use(), the implementation maps all HTTP method entries in the _RouterEntry, even though only one method is being looked up at a time. This works correctly but performs unnecessary transformations.
Proposed Optimization
Modify the implementation to apply the mapping function only to the specific method entry being looked up, rather than transforming all method entries upfront.
Activity
fix(pr-feedback): Remove TODO. Tracked in issue serverpod#188