numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
18 stars 6 forks source link

Deactivate version control for large files #83

Closed numeredev closed 1 year ago

numeredev commented 1 year ago

DESCRIPTION

Is your change request related to a problem? Please describe. If we edit large files within the editor (e.g. > 1MB), then it takes forever to calculate the necessary entries for the version control. Deactivate the version control for such a large files.

Describe the solution you'd like Deactivate the version control for large files. Large files could mean files, which are large than 1MB, but that has to be measured.

Describe possible alternatives you've considered A clear and concise description of any alternative solutions or features you've considered, if any.

Additional context Add any other context or screenshots about the feature request here.

(Do not write below this line)


DEVS' SECTION

ANALYSIS

Is in fact not so hard to do, because we can measure the length of a file simply by calling NumeReEditor::GetLastPosition(). 1MB is a good guess, but that might need some tweaking as it is not so difficult to achieve fast. While saving a file within the editor, check, whether it exceeds the boundary and then do not create any further revisions. If it already contains revisions, show a warning to the user to indicate this problem.

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST