p4lang / behavioral-model

The reference P4 software switch
Apache License 2.0
536 stars 328 forks source link

increase performance of bmv2 / simple_switch #109

Open antoninbas opened 8 years ago

antoninbas commented 8 years ago

Even though this is not the primary design goal of bmv2, the following ideas can be investigated:

  1. use a stack allocator in appropriate cases for class ByteContainer
  2. use a custom allocator for libgmp, could also speed up the phv::reset() operation used by simple_switch
  3. investigate replacement for libpcap to speed up I/O
  4. cache header and field ids in simple_switch instead of always looking up fields by name
  5. exact match cache for ternary match lookup
antoninbas commented 8 years ago

112 implements 1.