Skip to content

Address canadensis_can v0.5.0 memory usage#57

Merged
samcrow merged 6 commits intosamcrow:masterfrom
Keybinder:low-memory
Oct 11, 2025
Merged

Address canadensis_can v0.5.0 memory usage#57
samcrow merged 6 commits intosamcrow:masterfrom
Keybinder:low-memory

Conversation

@Keybinder
Copy link
Contributor

Fixes #55 (to an extent). Adds a few regression tests. Subscriptions now use ~2 KB each (on allocation, with more memory being allocated to store transfer reassemblies as needed); this is still more than I would like and more than v0.3.1 (~0.5 KB) but it is an improvement while handling transfer-ID-related issues properly as best as I can tell.

This adds ServiceId::{MIN, MAX} and SubjectId::{MIN, MAX} public constants to canadensis_core. This is just for the tests; you can add local constant definitions to the test file instead if you'd like to avoid bumping the canadensis_core version.

@samcrow
Copy link
Owner

samcrow commented Oct 11, 2025

Thanks for contributing

@samcrow samcrow merged commit 7f399b9 into samcrow:master Oct 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

canadensis_can v0.5.0 uses ~32 KB per subscription

2 participants