karafka/rdkafka-ruby

Optimize `partition_count` iterating on big set of topics

mensfeld opened this issue · 0 comments

At the moment each usage of #partition_count costs us iterating over the cache. This is sub-optimal because in case of a constant flow of messages we do it most of the time for nothing. It would be better to retrieve cache and then only invalidate if outdated.