Closed cesco69 closed 3 weeks ago
I think that should be faster, but probably by barely any amount, since it skips reading body for requests without it anyway.
Ok, thanks!
Also (_req, _res, next) => next() is useless and only makes it slower
Oh right! thanks!
@dimdenGD Thanks for
ultimate-express
and sorry for bad english! I have just one question, I want optimize my routing resolution avoidind useless miggleware like the body parser middleware, in my case onlyPOST
method need it.Instead of:
I have made
In this way
GET
method routing resolution are faster because are not affected by body parser callback?POST
method routing resolution is same asexpress.use(express.json({ limit: '100kb', strict: false }));
?Thanks for your time!
PS. Maybe can be a performance-tips https://github.com/dimdenGD/ultimate-express?tab=readme-ov-file#performance-tips