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

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • 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: 2896
  • Hero Points: 153
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: 2620
  • Hero Points: 210
  • 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.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6823
  • Hero Points: 526
Re: Diff timeout and hang
« Reply #3 on: November 27, 2021, 02:05:37 AM »
Were you using source diff on these files?

I'd really like a diff tool that is very XML aware, and not just comparing text.
This is something we've been thinking about doing. A good start would be handling any attribute order. Maybe source diff could order the attributes on the right side based on the left side. Easier said than done for sure. Source diff would need special code for XML.

Graeme

  • Senior Community Member
  • Posts: 2793
  • Hero Points: 347
Re: Diff timeout and hang
« Reply #4 on: November 27, 2021, 05:40:05 AM »