811d3656696d8edb2ef5ac86eb43a97f66459dac
std::shared_from_this is actually incredibly slow, and dominates the cost of host buffer allocation at 20x more expensive than the memcpy. We can remove the usage of shared_from_this by making an internal class hold the actual allocation/buffer state instead. ### Before  146 ms / 647ms = ~20% ### After 33 ms / 540 ms = ~6% 
Description
Languages
Dart
75.4%
C++
16.4%
Objective-C++
2.7%
Java
2.7%
Objective-C
0.6%
Other
1.8%