Skip to content

Simplify hit detection code #3014

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

Merged
merged 1 commit into from
Dec 5, 2014
Merged

Simplify hit detection code #3014

merged 1 commit into from
Dec 5, 2014

Conversation

elemoine
Copy link
Member

@elemoine elemoine commented Dec 5, 2014

This PR is a major refactoring of the replay hit detection code, to simplify the code.

Previously the replay objects did not know about features, and they manipulated opaque data objects instead. This was true until we introduced the skippedFeatureHash.

This PR clarifies the situation by removing the opaque data object. The replay objects now know about features, which simplifies and clarifies the code.

@ahocevar
Copy link
Member

ahocevar commented Dec 5, 2014

Huge improvement. Thanks for doing this! Please merge.

elemoine pushed a commit that referenced this pull request Dec 5, 2014
@elemoine elemoine merged commit 347c4c8 into openlayers:master Dec 5, 2014
@elemoine elemoine deleted the simplifyreplay branch December 5, 2014 15:53
@ahocevar
Copy link
Member

ahocevar commented Dec 5, 2014

Hm. I spoke too soon. This conflicts with #3010 and makes it much harder if not impossible to achieve what I want there.

@ahocevar
Copy link
Member

ahocevar commented Dec 5, 2014

No sorry, please disregard my previous comment. Everything is fine 😄.

@elemoine
Copy link
Member Author

elemoine commented Dec 5, 2014

I'd have been surprised. This PR does not change any logic I think.

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