Skip to content

Commit 5e1b1d1

Browse files
authored
Merge pull request #119 from hacknus/performance_increase
Performance increase
2 parents b4d3370 + 988c3bd commit 5e1b1d1

File tree

8 files changed

+331
-173
lines changed

8 files changed

+331
-173
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
All notable changes to the `Serial Monitor` crate will be documented in this file.
44

5-
# Unreleased 0.4.x
5+
## Unreleased 0.4.x
66

7+
* Switched to `crossbeam-channel` for more efficient channel routing
8+
* removed many `.clone()` calls to reduce CPU load
79
* Fixed sample rate / disconnect issue
810
* Releases are now linked to libssl 3.4.1 on linux (built on Ubuntu 22.04)
911

10-
# 0.3.4
12+
## 0.3.4
1113

1214
* implement option to self-update the application
1315

Cargo.lock

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ self_update = { git = "https://github.com/hacknus/self_update", features = ["arc
2727
tempfile = { version = "3.15", optional = true }
2828
reqwest = { version = "0.12", default-features = false, features = ["blocking", "json", "rustls-tls", "http2"], optional = true }
2929
semver = { version = "1.0.24", optional = true }
30+
crossbeam-channel = "0.5.14"
3031

3132
[features]
3233
self_update = ["dep:self_update", "tempfile", "reqwest", "semver"]
@@ -51,4 +52,7 @@ dbg-build = false
5152
dbg-name = false
5253
name = "Serial Monitor"
5354
no-build = false
54-
output = "target/wix/SerialMonitorInstaller.msi"
55+
output = "target/wix/SerialMonitorInstaller.msi"
56+
57+
[profile.release]
58+
debug = true

src/data.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use egui_plot::PlotPoint;
12
use std::fmt;
23
use std::time::{SystemTime, UNIX_EPOCH};
34

@@ -62,3 +63,9 @@ impl Default for DataContainer {
6263
}
6364
}
6465
}
66+
67+
#[derive(Clone, Debug, Default)]
68+
pub struct GuiOutputDataContainer {
69+
pub prints: Vec<String>,
70+
pub plots: Vec<(String, Vec<PlotPoint>)>,
71+
}

0 commit comments

Comments
 (0)