avoid Function instantiating std::decay over lambdas
Summary: It turns out that `std::decay` becomes expensive when as widely instantiated as it is. ```name=trunk $ foundation/scripts/run-perf-compile --syntax folly/futures/test/FutureTest.cpp 6,336,421,499 instructions:uP ``` ```name=branch $ foundation/scripts/run-perf-compile --syntax folly/futures/test/FutureTest.cpp 6,287,269,480 instructions:uP ``` Reviewed By: Gownta, luciang Differential Revision: D32973204 fbshipit-source-id: 75d52fd5ced58f50518913d3c00709bcee27c87b
Showing
Please register or sign in to comment