fix: Reduce heap allocations by getting rid of temporary std::list and std::string

This commit is contained in:
feedc0de committed 2023-05-31 16:13:55 +02:00
1 parent 331935d7ec
commit 2ded13f195
7 files changed
+36 -32

No files matched your search

@@ -74,7 +74,7 @@ public:
return device.get();
}
command_result command(const std::string &command, got_line_cb got_line, uint32_t time_ms)
command_result command(std::string_view command, got_line_cb got_line, uint32_t time_ms)
{
return dte->command(command, std::move(got_line), time_ms);
}