Optimize RequestData shallow copying
Summary: The shallow copy code path currently iterates and copies all values manually. Instead of benefiting from the underlying data collection's implementation of self-copy. At the very least, it's simpler looking code. Inheriting unique_ptr is usually discouraged, but in this specific (internal impl detail) use case, I can't foresee any risk. Reviewed By: yfeldblum Differential Revision: D15599260 fbshipit-source-id: 73edea27a27e8fbc8b057cf3e974ee3d83a6e760
Showing
Please register or sign in to comment