forked from osmocom/wireshark
Qt: Allow caching columns while dissecting color
It is fine to dissect and cache columns data during color dissection if it won't evict already cached data. There is rather high probability of using the column data because color information is dissected in order.
This commit is contained in:
parent
ac64be57c0
commit
516c69b921
|
@ -54,8 +54,9 @@ void PacketListRecord::ensureColorized(capture_file *cap_file)
|
|||
|
||||
bool dissect_color = !colorized_ || ( color_ver_ != rows_color_ver_ );
|
||||
if (dissect_color) {
|
||||
/* Do not dissect columns to avoid thrashing cache */
|
||||
dissect(cap_file, false, dissect_color);
|
||||
/* Dissect columns only if it won't evict anything from cache */
|
||||
bool dissect_columns = col_text_cache_.totalCost() < col_text_cache_.maxCost();
|
||||
dissect(cap_file, dissect_columns, dissect_color);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue