Skip to content
Commit 3f51f8c6 authored by Douglas RAILLARD's avatar Douglas RAILLARD
Browse files

lisa.trace: Use category dtype for some columns

Use category dtype for "__comm" and "comm" columns, since they are
heavily used strings. This allows saving a lot of memory, at the
expense of groupby() speed (x10 slowdown). The filtering speed is a bit
improved (x1.1 speed up)

sched_switch dataframe also uses category for prev_comm and next_comm
columns, achieving a reduction of 5x in memory consumption.
parent 5b4b1c67
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment