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

Further prepare for more sophisticated curve approximation #2010

Merged
merged 12 commits into from
Sep 7, 2023
Merged

Conversation

hannobraun
Copy link
Owner

Add a test suite for CurveApproxCache, fix a bug, and move the cache more towards what it needs to be, to support more flexible caching. This is more progress towards #1937, specifically the work described in #1937 (comment).

Curve insertion *returned* the correct curve segment, which means either
the existing segment, if there is one, or the new one being inserted.
But it actually *inserted* the wrong one, i.e. the new one.

I don't think this lead to any bugs, due to the current usage patterns
of the cache API, but it's wrong none the less, and a bug waiting to
happen.
This is a pure refactoring, but it paves the way for merging curve
approximations in more interesting ways in the future.
@hannobraun hannobraun enabled auto-merge September 7, 2023 10:11
@hannobraun hannobraun merged commit ee71c9c into main Sep 7, 2023
@hannobraun hannobraun deleted the approx branch September 7, 2023 10:16
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.

1 participant