Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Speed up Java version #57

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Speed up Java version #57

wants to merge 5 commits into from

Conversation

jetzhliu
Copy link

Make patch_apply use StringBuilder instead of String to speed up patch stage.

After using StringBuilder, it's more than 4 times faster than original version.
Speed test using Speedtest.java
After using StringBuilder, it's more than 10 times faster than original version.
Speed test using Speedtest.java
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants