commit | 683819f862020aa1ca41d7807a5020c8c2fa5ad3 | [log] [tgz] |
---|---|---|
author | Måns Ansgariusson <Mansgariusson@gmail.com> | Fri Sep 26 15:55:05 2025 +0200 |
committer | Johan Hedberg <johan.hedberg@gmail.com> | Tue Oct 14 12:52:27 2025 +0300 |
tree | f978ead061dda1c34c0e9a4033610c669bf78fbb | |
parent | 022de69491e54872235eef1937b5e36e41fca123 [diff] |
shell: history rewrite to use k_heap instead of ring_buffer The ring_buffer API was not ideal for this use case, as it is designed for concurrent access, which is not needed here. The new implementation using k_heap is more readable and easier to maintain. There is a slight penalty in memory usage & effectiveness due to the overhead of k_heap, but since this isn't a production-critical path, the trade-off is acceptable. Signed-off-by: Måns Ansgariusson <Mansgariusson@gmail.com>