-
Notifications
You must be signed in to change notification settings - Fork 21
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
Cache device class data #958
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There's a merge conflict. |
bigger change than I thought due to a branching issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we test the uncovered lines?
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
whoops sorry @MartinHjelmare didn't mean to merge this yet but hope this addressed all the concerns |
Looks good, thanks! |
bdraco shared this profile with me
We don't need to create the DeviceClass instance every time which will reduce the calls significantly. We also created
DeviceClassItem
on each lookup so I've stored it. If anything changes we will create a new DeviceClass instance on update so we shouldn't be storing any stale data in this PR