Alexey Serbin created KUDU-3823:
-----------------------------------

             Summary: Use perfect_hash for dispatching incoming RPCs to proper 
interfaces and handlers
                 Key: KUDU-3823
                 URL: https://issues.apache.org/jira/browse/KUDU-3823
             Project: Kudu
          Issue Type: Improvement
          Components: master, rpc, tserver
            Reporter: Alexey Serbin


The [perfect hash|https://github.com/ConstexprCore/perfect_hash] seems to be a 
great fit for building and using compile-time lookup tables to dispatch 
incoming Kudu RPC.  Using it instead of std::unordered_map lookup should 
improve RPC throughput and reduce RPC handling latency.

Perhaps, it's also possible to compare serialized method/interface names 
without deserializing the whole protobuf message first, and that may be a good 
improvement as well.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to