Wish more modules would expose a `function (req, res) {}` interface. Perhaps with `, next)` too. We need more composable HTTP modules
are you saying passing req, res around causes deopts? In this case I find myself rewriting lots of code; having more like^ would speed it up
-
-
changing the shape of Req and Res causes deopts and it results in less optimized code. cc
@bmeurer -
Oh! Yeah no I'd never advocate for that. I like myself a (req, res, ctx) interface for that reason. Was thinkin likehttps://github.com/rvagg/github-webhook-handler …
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.