-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Diff display suppression should not trigger on long lines #1826
Comments
It's not errounosly, it's by design. The issue is that lives with many chars make the browser slow or even hang. An example of this is a minified JS or CSS. It's often a single line, and your browser will hang. You can change that in your |
Right, my example is 681 characters, while the default limit is 500 chars on a single line. I'd say a value like 2000 or more would be a more reasonable default (Quite hard to find a minfied script that is not at least that length). |
I'm ok with 2000 if that don't make the browser slow, but maybe 1000 is
enough to cover most cases.
That said, a PR with the change would be welcome.
Em dom, 28 de mai de 2017 11:10, silverwind <notifications@github.com>
escreveu:
… Right, my example is 681 characters, while the default limit is 500 chars
on a single line. I'd say a value like 2000 or more would be a more
reasonable default (Quite hard to find a minfied script that is not at
least that length).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1826 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGr96z7vZuI-yZ2kWc7o8X_40Oe0GN8Pks5r-YBigaJpZM4NomzQ>
.
|
Line length alone isn't what makes browsers slow. Slowness is from my oberservation based purely on total character amount, or more specifically, the amount of DOM nodes rendered. I'm leaning towards increasing it even more, maybe 5k. That's what I currently use in my Gitea instance. |
I think it's linked to #1827 |
Tests indicate that line length alone does not make browsers slow, so increase the default threshold after which diffs get surpressed for line length from 500 to a more reasonable 5000 characters. Fixes: go-gitea#1826
Tests indicate that line length alone does not make browsers slow, so increase the default threshold after which diffs get surpressed for line length from 500 to a more reasonable 5000 characters. Fixes: #1826
Description
Diff with long lines is errounously detected a being "too large", e.g. should only trigger on char count:
Actual diff ist just 2 (long) lines:
The text was updated successfully, but these errors were encountered: