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

Reduce memory usage of BLEDevice with __slots__ #1117

Merged
merged 1 commit into from
Nov 6, 2022
Merged

Conversation

bdraco
Copy link
Contributor

@bdraco bdraco commented Nov 6, 2022

We have thousands of these floating around in memory so it helps a bit for the RPI3b users.

Not done for AdvertisementData since NamedTuple already uses __slots__ under the hood

Not done for AdvertisementData since NamedTuple already uses
__slots__ under the hood
@dlech dlech merged commit 7337591 into hbldh:develop Nov 6, 2022
@dlech
Copy link
Collaborator

dlech commented Nov 6, 2022

Sounds good, thanks.

@bdraco
Copy link
Contributor Author

bdraco commented Nov 6, 2022

thanks

@dlech dlech mentioned this pull request Mar 17, 2023
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.

2 participants