Created attachment 112836 [details]
Please see the attached stacktrace.
This stacktrace was obtained during performance team search for usages of
outputStream in AWT - this often causes slowness when caught by versioning or
If it is impossible to do this off awt can it at least be run
It would be a bad idea to do the Save operation on background. For consistency I just want to make sure the document was saved before I continue typing.
You could possibly gain some little performance improvement by using a background thread for the save operation and wait for completion of that thread but it's not worth the effort. The save thread will require document's write lock (due to save actions such as trailing whitespace removal) and repainting of editor pane requires read lock so once editor pane's repaint would occur the paint operation (i.e. the AWT thread) would be stuck waiting for completion of the save operation anyway.
The problem is, that when save action is done in awt without wait cursor or without using runOffEventDispatchThread it can (and does) cause slowness when this operation is caught by versioning. Please add at least the wait cursor in 7.2 scope...
It must be fixed for 7.2.
So the replanning from EDT into background thread will be done in SaveAction in platform/actions by Yarda,
The CloneableEditorSupport.saveDocument() may remain the same: before save actions (currently just remove-trailing-ws) will be write-locked and the actual save will be read-locked.
I will implement a functionality that will allow the document to be rendered even when the document is write-locked. Besides the before-save-actions it will be usable for document reformatting.
responsiveness of editors based on writable remote file objects is affected by this issue
*** Bug 207444 has been marked as a duplicate of this bug. ***
*** Bug 209081 has been marked as a duplicate of this bug. ***
Created attachment 116852 [details]
trying to save the php file (upload on save over ftp enabled)
Created attachment 116856 [details]
fast typing in php file and saving it (which caused uploading the file to FTP - upload on save feature)
fixed by jarda in af7375b814a8