Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More heapless #722

Merged
merged 5 commits into from
Dec 24, 2022
Merged

More heapless #722

merged 5 commits into from
Dec 24, 2022

Conversation

Dirbaio
Copy link
Member

@Dirbaio Dirbaio commented Dec 22, 2022

More heapless use, continues work started in #719

Use heapless for Routes and NeighborCache.

Routes reduces code size by 1.7kb. Makes sense since the new code is much simpler (no maps).
NeighborCache increases code size by 152 bytes. Not sure why, it should also be simpler....

@Dirbaio Dirbaio force-pushed the heapless branch 3 times, most recently from 315bbea to 895c1d5 Compare December 22, 2022 02:32
Lookup is O(n) now. However, it previously did 32 (or 128 for ipv6!)
map lookups. Since the route table typically doesn't have that many
routes, the new code is likely faster even if it's O(n).
@Dirbaio Dirbaio marked this pull request as ready for review December 24, 2022 00:11
@Dirbaio Dirbaio merged commit 19c7cba into master Dec 24, 2022
@Dirbaio Dirbaio deleted the heapless branch December 24, 2022 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant