Use a red-black tree for storing the varnishtop entries
When using varnishtop -1 on a large log file, the old linked list approach was very slow. Using a tree increases performance significantly. In a test, old was 15 minutes, 52 seconds, new code changes that to about 1.8 seconds.
Showing
bin/varnishtop/vtree.h
0 → 100644
This diff is collapsed.
Please register or sign in to comment