mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add more complex perf test for the mapbuffer
Summary: Benchmarks performance/correctness of mapbuffer with several different types of data Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D33608299 fbshipit-source-id: 81b1e195aecac60ad1cc3ca416d1cf7b09feab32
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ea712f825a
commit
0b48ef7ca8
@@ -148,7 +148,7 @@ void MapBufferBuilder::putString(Key key, std::string const &value) {
|
||||
dynamicDataOffset_ += sizeOfDynamicData;
|
||||
}
|
||||
|
||||
void MapBufferBuilder::putMapBuffer(Key key, MapBuffer &map) {
|
||||
void MapBufferBuilder::putMapBuffer(Key key, MapBuffer const &map) {
|
||||
int32_t mapBufferSize = map.getBufferSize();
|
||||
|
||||
// format [lenght of buffer (int)] + [bytes of MapBuffer]
|
||||
|
||||
@@ -84,7 +84,7 @@ class MapBufferBuilder {
|
||||
|
||||
void putString(Key key, std::string const &value);
|
||||
|
||||
void putMapBuffer(Key key, MapBuffer &map);
|
||||
void putMapBuffer(Key key, MapBuffer const &map);
|
||||
|
||||
// TODO T83483191: This should return MapBuffer!
|
||||
MapBuffer build();
|
||||
|
||||
Reference in New Issue
Block a user