0

I am using a mempool in my dpdk app to store values that are periodically emitted to an external server. Everytime the values are emitted I want to replenish the complete mempool. What is the best wat to put back all elements as available to the mempool?

Sayantan Ghosh
  • 998
  • 2
  • 9
  • 29
  • Should you not be calling the `put` function that matches the `get` used to acquire the objects in the first place? Your other choice is to destroy the mempool and create a new one. – stark Jan 07 '23 at 12:31
  • I am essentially looking for a put_all kind of function. What is the performance difference (theoretically superiror) doing a put to all elements one by one vs destroy/create? My mempool has 100k elements. – Sayantan Ghosh Jan 09 '23 at 18:54

0 Answers0