Skip to content

Conversation

@isoos
Copy link
Collaborator

@isoos isoos commented Nov 18, 2024

Local benchmark showed about 5-6% difference on a continuous load.

@isoos isoos requested review from jonasfj and sigurdm November 18, 2024 11:10
score = IndexedScore<K>(_keys, value);
}
final r = fn(score);
_pool.add(score);
Copy link
Contributor

Choose a reason for hiding this comment

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

This logic means that we will never have more scores then the high-watermark of scores that we need at one time - right?

Thus we don't really risk leaking excessive memory... right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's correct. We also replace the index every 15 minutes, and if there is an extreme outlier period, its memory footprint won't be around after that.

@isoos isoos merged commit f7394b3 into dart-lang:master Nov 18, 2024
32 checks passed
@isoos isoos deleted the score-pool branch November 18, 2024 11:43
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

Successfully merging this pull request may close these issues.

2 participants