diff --git a/_posts/2014-03-03-regaining-lost-memories.md b/_posts/2014-03-03-regaining-lost-memories.md index 1888f40..a27dc9d 100644 --- a/_posts/2014-03-03-regaining-lost-memories.md +++ b/_posts/2014-03-03-regaining-lost-memories.md @@ -90,8 +90,6 @@ config.middleware.delete(Rack::ETag) config.middleware.delete(Rack::ConditionalGet) config.middleware.delete(ActionDispatch::RequestId) config.middleware.delete(ActionDispatch::RemoteIp) -config.middleware.delete(Rack::MethodOverride) -config.middleware.delete(ActionDispatch::Callbacks) unless Rails.env.development? config.middleware.delete(ActionDispatch::Reloader) end @@ -108,3 +106,7 @@ Puma seems to have a significantly smaller memory footprint. I can't really add Micro-managing dependencies is not really worth the trouble. Although I feel better knowing that some unneeded libraries are not loaded, so there's that. Pruning middleware can speed up the time it takes for Rack to process each request. Of course it is not going to make your database queries run faster but for short requests it might give you a measurable improvement. + +## Update + +* Removing `ActionDispatch::Callbacks` seems to have some weird side-effects, experiment with it at your own risk. Related snippet updated.