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

Fetch device type in parallel for faster startup time in plants with many devices #1

Open
orlopau opened this issue Dec 9, 2020 · 0 comments

Comments

@orlopau
Copy link
Owner

orlopau commented Dec 9, 2020

When a new plant is created from a slice of device addresses, the type of the device must be determined.

This is achieved by scanning the SunSpec module table (via modbus). When the tables have been read, they are cached for the runtime of the application.

Scanning devices is currently performed in sequence, but can be easily parallelized, resulting in a huge startup performance gain in plants with many devices.

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

No branches or pull requests

1 participant