Skip to content

Optimize DecodeEncodedStr #187

Open
Open
@mbautin

Description

Jira Link: DB-2053
Saw this on the <some_customer> cluster:

+   10.01%  rpc_tp_CQLServe  libtcmalloc.so.4.2.2            [.] operator new[]                                                                                                                                                                                                                                              ▒
+    7.16%  rpc_tp_CQLServe  libtcmalloc.so.4.2.2            [.] operator delete[]                                                                                                                                                                                                                                           ▒
-    5.02%  rpc_tp_CQLServe  libstdc++.so.6.0.21             [.] std::string::reserve                                                                                                                                                                                                                                        ▒
   + std::string::reserve                                                                                                                                                                                                                                                                                                    ▒
-    4.98%  rpc_tp_CQLServe  libstdc++.so.6.0.21             [.] std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string                                                                                                                                                                        ▒
   + std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string                                                                                                                                                                                                                                    ▒
-    4.91%  rpc_tp_CQLServe  libyb_docdb.so                  [.] yb::docdb::DecodeEncodedStr<(char)0>                                                                                                                                                                                                                        ▒
   - yb::docdb::DecodeEncodedStr<(char)0>                                                                                                                                                                                                                                                                                    ▒
      - 4.84% yb::docdb::DecodeZeroEncodedStr                                                                                                                                                                                                                                                                                ▒
         - yb::docdb::PrimitiveValue::DecodeKey                                                                                                                                                                                                                                                                              ▒
            - 4.84% yb::docdb::PrimitiveValue::DecodeFromKey                                                                                                                                                                                                                                                                 ▒
               - 3.33% yb::docdb::ConsumePrimitiveValuesFromKey                                                                                                                                                                                                                                                              ▒
                    yb::docdb::DocKey::DoDecode<yb::docdb::DocKey::DecodeFromCallback>                                                                                                                                                                                                                                       ▒
                  - yb::docdb::DocKey::DecodeFrom                                                                                                                                                                                                                                                                            ▒
                     + 3.33% yb::docdb::SubDocKey::DoDecode<yb::docdb::SubDocKey::DecodeCallback>                                                                                                                                                                                                                            ▒
                     + 0.00% yb::docdb::DocRowwiseIterator::HasNext                                                                                                                                                                                                                                                          ▒
               - 1.51% yb::docdb::PrimitiveValue::DecodeFromValue                                                                                                                                                                                                                                                            ▒
                    yb::docdb::Value::Decode                                                                                                                                                                                                                                                                                 ▒
                  + yb::docdb::(anonymous namespace)::BuildSubDocument                                                                                                                                                                                                                                                       ▒
            + 0.00% yb::docdb::SubDocKey::DoDecode<yb::docdb::SubDocKey::DecodeCallback>                                                                                                                                                                                                                                     ▒
            + 0.00% yb::docdb::(anonymous namespace)::ConsumePrimitiveValuesFromKey<yb::docdb::(anonymous namespace)::ConsumePrimitiveValuesFromKey(yb::Slice*, boost::container::small_vector_base<yb::Slice, boost::container::new_allocator<yb::Slice> >*)::{lambda()#1}>                                                 ▒
      + 0.07% yb::docdb::PrimitiveValue::DecodeKey       

Metadata

Assignees

Labels

area/docdbYugabyteDB core featureskind/enhancementThis is an enhancement of an existing featurepriority/mediumMedium priority issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions