mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Performance improvement hackathon: improve process comparison routines,
disable useless code in release builds such as runtime type-checking on dynamic data structures and process fields that are not being computed, faster(?) method for verifying the process owner (still need to ensure correctness), don't destroy and create process objects for hidden kernel threads over and over. Phew. I shouldn't be doing all this today, but I could not resist.
This commit is contained in:
4
Header.c
4
Header.c
@ -35,8 +35,8 @@ typedef struct Header_ {
|
||||
|
||||
Header* Header_new(ProcessList* pl) {
|
||||
Header* this = malloc(sizeof(Header));
|
||||
this->leftMeters = Vector_new(METER_CLASS, true, DEFAULT_SIZE);
|
||||
this->rightMeters = Vector_new(METER_CLASS, true, DEFAULT_SIZE);
|
||||
this->leftMeters = Vector_new(METER_CLASS, true, DEFAULT_SIZE, NULL);
|
||||
this->rightMeters = Vector_new(METER_CLASS, true, DEFAULT_SIZE, NULL);
|
||||
this->margin = true;
|
||||
this->pl = pl;
|
||||
return this;
|
||||
|
Reference in New Issue
Block a user