Author Topic: Diff timeout and hang  (Read 67 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2428
  • Hero Points: 202
  • Text
Diff timeout and hang
« on: November 23, 2021, 06:53:35 pm »
I'm trying to Diff 2 4MB XML files.
I changed XML to "Plain Text" in Slickedit to avoid time spent coloring.

When I diff the two files, it takes awhile, then I get a Diff Failed - Timeout dialog.
I click OK, and the DiffProgress dialog remains - slickedit is now *appears* stuck at this point.

Turns out, it is not stuck -- it just forgets to close the DiffProgress dialog.
It stays around until I close Slickedit.


Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2673
  • Hero Points: 143
Re: Diff timeout and hang
« Reply #1 on: November 26, 2021, 05:22:37 am »
I'll take a look at the progress dialog issue.

Any chance you can send me those files?  Are they very different?  Two 4MB text files shouldn't time out.  You can up that time out limit in the Options tab of the diff dialog.

jporkkahtc

  • Senior Community Member
  • Posts: 2428
  • Hero Points: 202
  • Text
Re: Diff timeout and hang
« Reply #2 on: November 26, 2021, 07:53:22 pm »
I'll see about sending them to you.
Adjusting the timeout does fix the problem, though doing the diff is still pretty slow.

There are lots of little differences, unfortunately.
I'm trying to build and verify a powershell help file, but the round trip between the xml(maml) and markdown files isn't very deterministic. The tools I'm using seem to introduce a lot of noise due to line wrapping and rearranging things. (Its almost as if the tool uses hash tables in memory and doesn't deterministically sort before serializing.)

I'd really like a diff tool that is very XML aware, and not just comparing text.
Sort of like source-diff, but also able to ignore insignificant reordering.

I'd like to avoid writing my own tool, but I will probably end up doing this.