Skip to content

Conversation

@shsms
Copy link
Contributor

@shsms shsms commented Jan 12, 2024

  • Refactor component status tracking into its own package.
  • Use timedeltas instead of floats for duration in component status trackers.
  • Convert ComponentStatusTrackers into BackgroundServices

shsms added 5 commits January 11, 2024 15:48
There's going to be status trackers for more component types. Those
can now go into the `_component_status` package.

Signed-off-by: Sahas Subramanian <[email protected]>
When constructing `ComponentPoolStatusTracker` objects.

Signed-off-by: Sahas Subramanian <[email protected]>
In the component status tracking parts of the power distributor.

Signed-off-by: Sahas Subramanian <[email protected]>
@github-actions github-actions bot added part:tests Affects the unit, integration and performance (benchmarks) tests part:actor Affects an actor ot the actors utilities (decorator, etc.) labels Jan 12, 2024
@shsms
Copy link
Contributor Author

shsms commented Jan 12, 2024

Only internal improvements, no release notes necessary.

@shsms shsms added the cmd:skip-release-notes It is not necessary to update release notes for this PR label Jan 12, 2024
@shsms shsms marked this pull request as ready for review January 12, 2024 17:23
@shsms shsms requested a review from a team as a code owner January 12, 2024 17:23
@shsms shsms requested a review from llucax January 12, 2024 17:23
@shsms shsms self-assigned this Jan 12, 2024
@shsms shsms added this to the v1.0.0-rc4 milestone Jan 15, 2024
Copy link
Contributor

@llucax llucax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! I'm just curious about Use a cached zero duration value, instead of repeatedly allocating, did this showed up in some benchmark?

@llucax llucax added the type:tech-debt Improves the project without visible changes for users label Jan 16, 2024
@shsms
Copy link
Contributor Author

shsms commented Jan 16, 2024

did this showed up in some benchmark?

no, but they do allocate in the hot path, which is many times slower than referencing a cached value.

@shsms shsms added this pull request to the merge queue Jan 16, 2024
Merged via the queue into frequenz-floss:v1.x.x with commit a29e600 Jan 16, 2024
@shsms shsms deleted the component-status branch January 16, 2024 12:05
@llucax
Copy link
Contributor

llucax commented Jan 16, 2024

Yeah, creating objects is really slow. Not sure if there will be any caching going on when creating the same (immutable) object over and over though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd:skip-release-notes It is not necessary to update release notes for this PR part:actor Affects an actor ot the actors utilities (decorator, etc.) part:tests Affects the unit, integration and performance (benchmarks) tests type:tech-debt Improves the project without visible changes for users

Projects

Development

Successfully merging this pull request may close these issues.

2 participants