Skip to content

optimize capacity & add assert messages in GeoJson #3063

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

Closed
wjdqhry opened this issue Feb 20, 2025 · 0 comments · Fixed by #3064
Closed

optimize capacity & add assert messages in GeoJson #3063

wjdqhry opened this issue Feb 20, 2025 · 0 comments · Fixed by #3064
Labels
status: waiting-for-triage An issue we've not yet triaged

Comments

@wjdqhry
Copy link
Contributor

wjdqhry commented Feb 20, 2025

I found that initial capacity of ArrayList is set to smaller than that actually needed, and in some cases, it isn't set at all.
Additionally, while LineString and MultiPoint use assertions for validating parameters, but Polygon doesn't.

I created this issue for fix it.

I can see this code was copied from Spring Data MongoDB, and still remains unchanged.
I'll trying to fix that too after resolve this issue.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants