What is more efficient with respect to simulation time (CPU cycles) and clearing a queue? Especially with very big queues, does it matter?
task clear_queue ;
while (queue.size() > 0) begin
queue.pop_front() ;
end
endtask
or
queue = {};