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

Add scheduled task to clear the resolver's type pools #4298

Merged
merged 1 commit into from
Nov 23, 2022

Conversation

mcculls
Copy link
Contributor

@mcculls mcculls commented Nov 23, 2022

What Does This Do

Periodically resets the type-resolver state by clearing its shared type-pools.

Motivation

Type transformations happen mainly at startup. By clearing the type-pools at a long enough interval after start we can reduce long-term memory overhead without impacting performance. The type-pools continue to be cleared at the same interval in case further types are transformed over the life of the application.

Additional Notes

Defaults to every 5 minutes

@mcculls mcculls requested a review from a team as a code owner November 23, 2022 10:23
Copy link
Member

@richardstartin richardstartin left a comment

Choose a reason for hiding this comment

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

Makes sense

@mcculls mcculls force-pushed the mcculls/type-pool-cleaning branch from ec16da9 to 0b6a18f Compare November 23, 2022 12:01
@mcculls mcculls force-pushed the mcculls/type-pool-cleaning branch from 0b6a18f to 9c6b46f Compare November 23, 2022 12:08
@mcculls mcculls merged commit 5e4c7a9 into master Nov 23, 2022
@mcculls mcculls deleted the mcculls/type-pool-cleaning branch November 23, 2022 18:52
@github-actions github-actions bot added this to the 1.2.0 milestone Nov 23, 2022
@bantonsson bantonsson modified the milestones: 1.2.0, 1.2.0-NEW, 1.1.2 Nov 24, 2022
@PerfectSlayer PerfectSlayer added tag: performance Performance related changes and removed overhead labels Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tag: performance Performance related changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants