numbas / numbas-lti-provider

An LTI tool provider to run Numbas exams
https://docs.numbas.org.uk/lti/en/latest/
Other
11 stars 12 forks source link

Use diff-match-patch for diffing suspend data #252

Closed christianp closed 1 year ago

christianp commented 1 year ago

The built-in difflib is slow on very large input - it took my PC several seconds to diff two strings of about half a megabyte.

There's a package diff-match-patch which is much faster; we should use that.