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 some benches and some internal cleanup #94

Merged
merged 3 commits into from
Apr 28, 2022
Merged

Add some benches and some internal cleanup #94

merged 3 commits into from
Apr 28, 2022

Conversation

michaelkirk
Copy link
Member

@michaelkirk michaelkirk commented Apr 27, 2022

  • I agree to follow the project's code of conduct.
  • [-] I added an entry to CHANGES.md if knowledge of this change could be valuable to users.
  • [🌮] I ran cargo fmt

No changes in behavior, just wanted to do some cleanup and add some additional baseline benchmarks.

@michaelkirk michaelkirk force-pushed the mkirk/cleanup branch 3 times, most recently from cc7ce39 to 6faa4a9 Compare April 27, 2022 18:18
@michaelkirk michaelkirk changed the title Add some benches, internal cleanup Add some benches and some internal cleanup Apr 27, 2022
@michaelkirk michaelkirk marked this pull request as ready for review April 27, 2022 18:37
@lnicola
Copy link
Member

lnicola commented Apr 28, 2022

bors r=urschrei,lnicola

@bors
Copy link
Contributor

bors bot commented Apr 28, 2022

Build succeeded:

@bors bors bot merged commit 4576ece into main Apr 28, 2022
@bors bors bot deleted the mkirk/cleanup branch April 28, 2022 09:16
bors bot added a commit that referenced this pull request Apr 28, 2022
95: FromWkt trait for reading WKT without exposing the user to the intermediate representation. r=urschrei a=michaelkirk

- [x] I agree to follow the project's [code of conduct](https://github.com/georust/geo/blob/master/CODE_OF_CONDUCT.md).
- [x] I added an entry to `CHANGES.md` if knowledge of this change could be valuable to users.
- [x] I ran cargo fmt
---

Draft because it's based on #94. Please review that first.

--- 

Note that this isn't a performance change. It's about (hopefully) making
the library easier to use.

This is a corollary to #89, but for
reading WKT, rather than writing. As we discussed there, probably there
is no reason for the user to care about the Wkt struct.

Note that the intermediate representation is still used (for now!), but
the user is no longer required to interact with it.

The road is open though for having a direct translation from Wkt text to
the geo-types (or whatever) represenation (see geozero for inspiration).

--- 

I also added the missing GeometryCollection::from(wkt) implementation to make this work for all geo-types.

Co-authored-by: Michael Kirk <michael.code@endoftheworl.de>
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.

3 participants