bottom/src/app
Clement Tsang 9c3e60e74f
other: slightly reduce the CPU time spent for draws (#918)
* other: group all dataset draws in a time chart

We used to draw each data set separately as a new canvas. Now, in one
canvas, we draw all datasets.

Note that this changes how dataset  lines are drawn - rather than
drawing one on top of another, it now draws kinda all at once. This
effect is *kinda* a bit better IMO, but it might also look a bit
more cluttered.

* other: optimize truncate_text

Flamegraphs showed that this area seems to be a bit heavy at times with
some inefficient use of iterators and collection. This change should
hopefully optimize this a bit by reducing some collections or
reallocations.

There can also be some further optimizations with less allocations from
callers.

* Reduce some redundant draws
2022-11-29 03:53:58 -05:00
..
data_harvester other: slightly reduce the CPU time spent for draws (#918) 2022-11-29 03:53:58 -05:00
data_farmer.rs other: shrink the timed data vector in addition to clearing (#900) 2022-11-19 15:09:53 -05:00
data_harvester.rs other: non-normalized process CPU% cleanup and docs (#910) 2022-11-21 05:28:42 -05:00
frozen_state.rs refactor: tables V2 (#749) 2022-10-12 16:25:38 -04:00
layout_manager.rs refactor: run cargo +nightly fmt with group_imports (#885) 2022-11-10 01:22:19 -05:00
process_killer.rs feature: add nord and nord-light colours (#406) 2021-02-15 14:12:43 -05:00
query.rs refactor: run cargo +nightly fmt with group_imports (#885) 2022-11-10 01:22:19 -05:00
states.rs refactor: move widgets out of the app folder nesting (#917) 2022-11-28 00:26:58 -05:00