Skip to content
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

large line file move cursor slow but copy to new not slow. when I watch jquery #3203

Closed
learnmove opened this issue Feb 8, 2020 · 11 comments

Comments

@learnmove
Copy link

Problem description

When I watch file jquery,it is ten thousand lines ,I cursor move everywhere,
must to wait 1 second arrive,but I copy all text to new untitle,it work very well
A description of a problem, workflow or integration that your suggestion would solve.
If the problem is OS-specific, include that information here.
win10,8 cpu

Preferred solution

A description of what changes should be made to Sublime Text to solve the problem.

Alternatives

A description of any alternative solutions or enhancements considered.

Additional Information (optional)

If applicable, add screenshots to help demonstrate the problem or proposed solution.
Code examples or related links are useful, too.

@learnmove learnmove changed the title large line file slow but copy to new not slow. when I watch jquery large line file move cursor slow but copy to new not slow. when I watch jquery Feb 8, 2020
@TerminalFi
Copy link

@learnmove just a question, is the Untitled doc set as plaintext?

@learnmove
Copy link
Author

learnmove commented Feb 12, 2020

I found when I set jquery.js syntax as not javascript ,it move cursor fast
move cursor faster than original javscript syntax,when turn to actionscript

@FichteFoll
Copy link
Collaborator

Long lines don't fare well with how ST and other editors using syntax highlighting based on TextMate optimize their highlighting. I believe we have an issue for bad performance in long lines, but I was unable to find it.

@jfcherng
Copy link

jfcherng commented Feb 13, 2020

In my personal case, I feel serious lag while moving cursor after opening jquery.js.

on_selection_modified:
ColorHelper.color_helper: 0.007s total, mean: 0.000s, max: 0.001s
Default.history_list: 0.010s total, mean: 0.000s, max: 0.001s
GitGutter.modules.events: 0.005s total, mean: 0.000s, max: 0.001s
Insert Nums.InsertNums: 0.001s total, mean: 0.000s, max: 0.000s
MultiEditUtils.MultiEditUtils: 0.003s total, mean: 0.000s, max: 0.001s
Phpcs.phpcs: 0.003s total, mean: 0.000s, max: 0.001s
ScopeHunter.scope_hunter: 0.001s total, mean: 0.000s, max: 0.000s
SublimeREPL.sublimerepl: 0.003s total, mean: 0.000s, max: 0.000s
TypeScript.typescript.listeners.listeners: 8.920s total, mean: 0.091s, max: 0.250s
                                           ^^^^^^^^^^^^ wait what!?

A plugin profile shows that TypeScript is consuming unreasonable time. After disabling TypeScript, the lag disappears immediately... I found a guy ran into the same issue microsoft/TypeScript-Sublime-Plugin#716

@FichteFoll
Copy link
Collaborator

@learnmove try reverting to a clean state to see if the issue is still there: https://www.sublimetext.com/docs/3/revert.html

If it's not, either a third-party plugin or syntax definition show bad performance.

@learnmove
Copy link
Author

@learnmove try reverting to a clean state to see if the issue is still there: https://www.sublimetext.com/docs/3/revert.html

If it's not, either a third-party plugin or syntax definition show bad performance.

alright, you are right. thanks

@learnmove learnmove reopened this Feb 14, 2020
@learnmove
Copy link
Author

learnmove commented Feb 14, 2020

I found issue
when I search method
like @css
it is mess,and all screw up
but normal js it can find

maybe original javascript syntax only support normal javascript,not jquery code style

package 'javascript next' support

@jfcherng
Copy link

jfcherng commented Feb 14, 2020

I found issue
when I search method
like @css
it is mess,and all screw up

?

image

I would suggest you provide a screenshot if you cannot properly describe what is actually happening. I don't think people know what "mess / screw up" actually means.

By the way, I don't think there is a point using Javascript Next since the built-in Javascript should have supported ES6. (No?)

@learnmove
Copy link
Author

learnmove commented Feb 14, 2020

my enviroment is windows 10,and version 3.2.2 build 3211
copy from
https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.js
image

@jfcherng
Copy link

jfcherng commented Feb 14, 2020

I feel you are using ctrl+shift+r rather than ctrl+r?

@learnmove
Copy link
Author

learnmove commented Feb 14, 2020

I found issue
when I search method
like @css
it is mess,and all screw up

?

image

I would suggest you provide a screenshot if you cannot properly describe what is actually happening. I don't think people know what "mess / screw up" actually means.

By the way, I don't think there is a point using Javascript Next since the built-in Javascript should have supported ES6. (No?)

right,word imagination is big,but I love sublime text is truth.
I use symbol at to search method via input field
I try to rebert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants