Fabric: Using small_vector instead of regular vector in some hot code paths

Summary: The hope is that it will remove many unnececery allocations improving overal perfromance.

Reviewed By: mdvacca

Differential Revision: D14249198

fbshipit-source-id: f0442b3919ccead0582a3190dea0e33d517d85f6
This commit is contained in:
Valentin Shergin authored and Facebook Github Bot committed 2019-03-07 13:41:20 -08:00
1 parent c3ecae0db4
commit 2862ef3a47
7 files changed
+27 -11

No files matched your search

@@ -70,7 +70,7 @@ void AttributedString::prependAttributedString(
attributedString.fragments_.end());
}
const std::vector<Fragment> &AttributedString::getFragments() const {
const Fragments &AttributedString::getFragments() const {
return fragments_;
}