Skip to content

Endless diffing upon relatively small git diff payload with HTML output #415

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
mensfeld opened this issue Nov 15, 2021 · 3 comments · Fixed by rtfpessoa/diff2html-cli#128

Comments

@mensfeld
Copy link

mensfeld commented Nov 15, 2021

Step -1: Before filing an issue check out the troubleshooting section

  • Done

Step 0: Describe your environment

  • OS: Ubuntu 20.04
  • diff2html version: 5.1.11 cli and 3.4.11 diff2html
  • Using diff2html directly or using diff2html-ui helper: directly
  • Extra flags: --matching none

Step 1: Describe the problem:

Steps to reproduce:

  1. curl https://gist.githubusercontent.com/mensfeld/4711d1a697ce0dbf1b0fecac4da1b67d/raw/751b28ae26e8961398a369290010366fd651cb3b/base.diff > base.diff
  2. yarn run diff2html --matching none -i file -o stdout base.diff
  3. Wait forever

Update: when running with json as the format, finishes fast

diff example:

https://gist.githubusercontent.com/mensfeld/4711d1a697ce0dbf1b0fecac4da1b67d/raw/751b28ae26e8961398a369290010366fd651cb3b/base.diff

Observed Results:

Runs forever with 100% CPU

Expected Results:

Since the base diff ain't that big, I would expect it to finish.

@mensfeld mensfeld changed the title Endless diffing upon relatively small git diff payload Endless diffing upon relatively small git diff payload with HTML output Nov 15, 2021
@rtfpessoa
Copy link
Owner

@mensfeld
Copy link
Author

mensfeld commented Dec 6, 2021

Thank you for the clarification. I can try exposing this option but to be honest my JS knowledge is pretty limited :(

If I can I will submit a PR, otherwise I will wait for your help 🙏

@mensfeld
Copy link
Author

Thank you 🙏

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 a pull request may close this issue.

2 participants