After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 722512 - File saving: do not block the text buffer for small files
File saving: do not block the text buffer for small files
Status: RESOLVED WONTFIX
Product: gtksourceview
Classification: Platform
Component: File loading and saving
unspecified
Other All
: Normal enhancement
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
: 326224 623556 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-01-18 22:09 UTC by Sébastien Wilmet
Modified: 2018-05-26 14:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sébastien Wilmet 2014-01-18 22:09:07 UTC
For a remote file with a slow connection, the file saving can take some time, even for small files. And the buffer is blocked from any modification during the file saving.

For small files, it is possible to:
1. retrieve the entire content of the buffer into a string
2. save the string asynchronously

With step 1, we have a snapshot of the buffer contents. So any further modification is not taken into account, and the saved file is in a consistent state. Since the long string is in memory, the first step should block the buffer only for a short amount of time.

For big files, it is unfortunately not possible to not block the buffer while saving. So the autosave setting should be disabled in this case.
Comment 1 Sébastien Wilmet 2014-08-12 20:42:10 UTC
*** Bug 326224 has been marked as a duplicate of this bug. ***
Comment 2 Sébastien Wilmet 2015-04-27 15:06:20 UTC
*** Bug 623556 has been marked as a duplicate of this bug. ***
Comment 3 Sébastien Wilmet 2018-05-26 14:03:38 UTC
It's unlikely that this feature is ever going to be implemented, so I close the bug.