Skip to content

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

@mensfeld

Description

@mensfeld

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions