Skip to content

optimize capacity & add assert messages in GeoJson #4904

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 21, 2025 · 0 comments
Closed

optimize capacity & add assert messages in GeoJson #4904

wjdqhry opened this issue Feb 21, 2025 · 0 comments
Assignees
Labels
type: task A general task

Comments

@wjdqhry
Copy link
Contributor

wjdqhry commented Feb 21, 2025

related spring-projects/spring-data-elasticsearch#3063

I found a minor improvement in spring-data-elasticsearch, and I am submitting the same fix here.

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.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants