8000 Force WKB parsing to allocate points on ARMv7 by abeggc · Pull Request #14 · tidwall/tg · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Force WKB parsing to allocate points on ARMv7 #14

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
Apr 30, 2025

Conversation

abeggc
Copy link
Contributor
@abeggc abeggc commented Apr 29, 2025

Please do not open a pull request without first filing an issue and/or discussing the feature directly with me.

Please ensure you adhere to every item in this list

  • This PR was pre-approved by the project maintainer
  • I have self-reviewed the code
  • I have added all necessary tests

Describe your changes

The WKB struct present in GeoBIN files isn't always memory aligned which doesn't work on ARMv7 cpus and leads to bus errors. This fix forces the points to be read with the read_posn function instead.

Tested on x86_64, ARMv7, and aarch64.

Issue number and link

See issue #12

The WKB struct present in GeoBIN files isn't always memory aligned which doesn't
work on ARMv7 cpus and leads to bus errors. This fix forces the points to be
read with the read_posn function instead.

Tested on x86_64, ARMv7, and aarch64.
@tidwall tidwall merged commit b16fb45 into tidwall:main Apr 30, 2025
1 check passed
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
0