FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Speed up Java version by jetzhliu · Pull Request #57 · google/diff-match-patch · GitHub

This repository was archived by the owner on Aug 5, 2024. It is now read-only.
/ diff-match-patch Public archive

Speed up Java version - #57

Open
jetzhliu wants to merge 5 commits into
google:masterfrom
jetzhliu:master
Open

Speed up Java version#57
jetzhliu wants to merge 5 commits into
google:masterfrom
jetzhliu:master

Conversation

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL