[ ZEPPELIN-1266 ] Code editor Optimization#1258
[ ZEPPELIN-1266 ] Code editor Optimization#1258cloverhearts wants to merge 3 commits intoapache:masterfrom cloverhearts:dev/aceeditorperformance
Conversation
|
ci trigger. |
|
please, remove to browser cache |
| $scope.isParagraphSaveAlready = true; | ||
| $scope.startSaveTimer(); | ||
| var cursorValue = $scope.editor.getCursorPosition(); | ||
| if (cursorValue.row === 0 && cursorValue <= 30) { |
There was a problem hiding this comment.
AFAIK here, in case it's the first row (like %something.somethig-else) we change paragraph mode.
But why do we check cursorValue <= 30 ?
|
Would it make sense to change |
|
@bzz Thank you for your feedback. |
|
I would limit this PR to the first commit, for me the rest is out of scope.
|
|
@corneadoug |
| $timeout(function() { | ||
| $scope.setParagraphMode($scope.editor.getSession(), $scope.dirtyText, $scope.editor.getCursorPosition()); | ||
| }); | ||
| var setParagraphMode = $scope.setParagraphMode; |
There was a problem hiding this comment.
Why not calling directly the function here?
There was a problem hiding this comment.
@corneadoug
I seem to have misunderstood your say.
Modification was completed.
Thank you.
|
@bzz |
…ditor optimization.
|
Looks great to me! |
|
@cloverhearts Thanks for the changes and keeping this PR focused. |
|
Merge if there is no further discussion |
### What is this PR for? If the result of many para- graph, the code editor is very slow. ### What type of PR is it? Improvement ### Todos - [x] removed call to function in template. - [x] changed event (aceChange event to ace input event) ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1266 ### How should this be tested? 1. going to r tutorial notebook. 2. write to paragraph on anyway. (many many.. fast.. fast typing.) ### Screenshots (if appropriate) #### Before optimization.  #### After optimization.  ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: CloverHearts <cloverheartsdev@gmail.com> Closes #1258 from cloverhearts/dev/aceeditorperformance and squashes the following commits: 2bde378 [CloverHearts] removed local variable setParagarphmode to global variable for code editor optimization. 9e2c7fc [CloverHearts] restore to aceChanged function for code editor optimization 86ba5c4 [CloverHearts] ace editor performance up (cherry picked from commit adf3355) Signed-off-by: Mina Lee <minalee@apache.org>
### What is this PR for? If the result of many para- graph, the code editor is very slow. ### What type of PR is it? Improvement ### Todos - [x] removed call to function in template. - [x] changed event (aceChange event to ace input event) ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1266 ### How should this be tested? 1. going to r tutorial notebook. 2. write to paragraph on anyway. (many many.. fast.. fast typing.) ### Screenshots (if appropriate) #### Before optimization.  #### After optimization.  ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: CloverHearts <cloverheartsdev@gmail.com> Closes apache#1258 from cloverhearts/dev/aceeditorperformance and squashes the following commits: 2bde378 [CloverHearts] removed local variable setParagarphmode to global variable for code editor optimization. 9e2c7fc [CloverHearts] restore to aceChanged function for code editor optimization 86ba5c4 [CloverHearts] ace editor performance up
What is this PR for?
If the result of many para- graph, the code editor is very slow.
What type of PR is it?
Improvement
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-1266
How should this be tested?
Screenshots (if appropriate)
Before optimization.
After optimization.
Questions: