Skip to content

Commit 824b015

Browse files
author
Stefan Dorunga
committed
Merge pull request #39 from HouseTrip/2013-03-03-regaining-lost-memories
Regaining lost memories
2 parents 8d85e36 + bd2433f commit 824b015

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

_posts/2014-03-03-regaining-lost-memories.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ config.middleware.delete(Rack::ETag)
9090
config.middleware.delete(Rack::ConditionalGet)
9191
config.middleware.delete(ActionDispatch::RequestId)
9292
config.middleware.delete(ActionDispatch::RemoteIp)
93-
config.middleware.delete(Rack::MethodOverride)
94-
config.middleware.delete(ActionDispatch::Callbacks)
9593
unless Rails.env.development?
9694
config.middleware.delete(ActionDispatch::Reloader)
9795
end
@@ -108,3 +106,7 @@ Puma seems to have a significantly smaller memory footprint. I can't really add
108106
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.
109107

110108
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.
109+
110+
## Update
111+
112+
* Removing `ActionDispatch::Callbacks` seems to have some weird side-effects, experiment with it at your own risk. Related snippet updated.

0 commit comments

Comments
 (0)