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

Use Files.readString instead of Files.readAllBytes #5428

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Dec 30, 2024

The former avoids creating a copy of byte array,
so it's slightly more performant

The former avoids creating a copy of byte array,
so it's slightly more performant
@geoand
Copy link
Contributor Author

geoand commented Dec 30, 2024

I can also do a separate PR for Vert.x 4

Copy link
Contributor

@tsegismont tsegismont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @geoand

@tsegismont tsegismont merged commit 3eb4248 into eclipse-vertx:master Jan 3, 2025
8 checks passed
@tsegismont
Copy link
Contributor

I can also do a separate PR for Vert.x 4

Please go ahead

@geoand
Copy link
Contributor Author

geoand commented Jan 3, 2025

👍🏽

@geoand geoand deleted the resolver-string branch January 3, 2025 14:25
@geoand
Copy link
Contributor Author

geoand commented Jan 3, 2025

Oh, I see the method was added in Java 11, but Vertx 4 has a Java 8 baseline, right?

@tsegismont
Copy link
Contributor

Yes indeed

@geoand
Copy link
Contributor Author

geoand commented Jan 3, 2025

Thanks.

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