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 Observable Gauge Creation Frequency in Gauges #5101

Closed
geoffrey1330 opened this issue Oct 19, 2023 · 1 comment
Closed

Reduce Observable Gauge Creation Frequency in Gauges #5101

geoffrey1330 opened this issue Oct 19, 2023 · 1 comment
Labels
feature-request All issues for new features that have not been committed to needs-discussion

Comments

@geoffrey1330
Copy link
Contributor

Proposal

The proposal suggests optimizing the gauge creation process in Gauges. The current implementation involves creating an observable gauge with each execution, and this practice might lead to performance inefficiencies. This proposal aims to explore ways to reduce the frequency of observable gauge creation in Gauges without compromising functionality.

Use-Case

In Gauges, the creation of an observable gauge for each execution is a common practice. However, this approach may not be optimal, especially when multiple executions occur in quick succession. It could result in an unnecessary overhead of gauge creation and handling, potentially affecting performance.

The proposed use-case is to investigate and implement a more efficient strategy for creating and managing observable gauges. This optimization would aim to minimize gauge creation frequency, particularly in scenarios where multiple executions are rapidly initiated. By doing so, Gauges can become more resource-efficient and responsive, improving the overall user experience.

Is this a feature you are interested in implementing yourself?

Yes

Anything else?

Related to #5045 (comment)

@geoffrey1330 geoffrey1330 added feature-request All issues for new features that have not been committed to needs-discussion labels Oct 19, 2023
@SpiritZhou
Copy link
Contributor

I think using package function instead of anonymous function and create an observable gauge in init function can improve this. Let me try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request All issues for new features that have not been committed to needs-discussion
Projects
Archived in project
Development

No branches or pull requests

3 participants