v.22.6Performance Improvement

Aggregates State Destruction Improved with Thread Pool for Faster Queries

Aggregates state destruction now may be posted on a thread pool. For queries with LIMIT and big state it provides significant speedup, e.g. select uniq(number) from numbers_mt(1e7) group by number limit 100 became around 2.5x faster. #37855 (Nikita Taranov).