Reverted commit D3557832
Summary: This change adds a non-throwing interface for folly::to<T>: tryTo<T>, which returns an Expected<T, ConversionCode>. Here is how the non-throwing interface compares to the regular interface in terms of performance. On the successful path, there's generally not much difference between using the throwing and non-throwing interfaces. For the error path, tryTo<> is about three orders of magnitude faster than to<>. Reviewed By: mhx Differential Revision: D3557832 fbshipit-source-id: 21f06b3c1a72b06dcf867ed3a3410f51e0fdaf45
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment