Applied performance optimization for queues.