brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

typing is choppy/slow, except in comments or small files #13472

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

Issue by caleb87 Wednesday Dec 16, 2015 at 21:27 GMT Originally opened as https://github.com/adobe/brackets/issues/12011


I have code hints off, no line highlighting (i dont even see this feature, but the line doesn't highlight)

When typing in my index.html file, the typing is really slow; it takes about almost a full second for a letter to show up. If I type in a commented area it's instant.

It's apparent that some kind of parsing is slowing it down.

My computer is Windows 7 Ultimate with 6 core 3.2GHz 3930k, 32GB RAM. Lots of resources left. I also tried running it as Administrator which didn't help, but did finally allow me to install extensions with the Extension Manager.

Edit: The only extensions installed were Beautify extensions. I removed them and restarted app which also didn't fix it.

core-ai-bot commented 3 years ago

Comment by abose Thursday Dec 17, 2015 at 08:13 GMT


can you do some typing operations, project switches and general susage for some time in brackets and then comment hemp>health report here?

core-ai-bot commented 3 years ago

Comment by caleb87 Thursday Dec 17, 2015 at 16:55 GMT


was still open from yesterday

{ "uuid": "52de8efc-a5be-4407-bdfc-6d8cf48d5abd", "snapshotTime": 1450371150833, "os": "win", "userAgent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Brackets/1.5.0.0 Chrome/39.0.2171.36 Safari/537.36", "osLanguage": "en-US", "bracketsLanguage": "en-US", "bracketsVersion": "1.5.0-16538", "fileStats": { "openedFileExt": { "html": 11, "xml": 3, "php": 9 }, "workingSetFileExt": { "html": 2, "php": 3, "xml": 1 } }, "ProjectDetails": { "prj113212267": { "numFiles": 283, "cacheSize": 5923414 } }, "projectLoadTimes": ":128", "fileOpenTimes": ":635:216", "ModuleDepsResolved": 590, "AppStartupTime": 1643, "prefNodeSearchDisabled": false, "prefInstantSearchDisabled": false, "installedExtensions": [ { "name": "adobe.brackets.extract", "version": "0.8.0-1749-release" } ], "bracketsTheme": "light-theme" }

core-ai-bot commented 3 years ago

Comment by ozzyjr Monday Dec 21, 2015 at 12:51 GMT


Hello

I'm with the same problem. Even with all extensions disabled, the editor is too slow to position the cursor, enter the codes and navigating through it. Here's the report with the extensions I use, the most important being the time the compiler less files

{ "uuid": "26699df0-9268-4eab-8c2e-ba78c1db4c91", "snapshotTime": 1450701966135, "os": "win", "userAgent": "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Brackets/1.5.0.0 Chrome/39.0.2171.36 Safari/537.36", "osLanguage": "pt-BR", "bracketsLanguage": "pt-br", "bracketsVersion": "1.5.0-16538", "fileStats": { "openedFileExt": { "less": 1 }, "workingSetFileExt": {} }, "ProjectDetails": { "prj2050993437": { "numFiles": 6, "cacheSize": 69625 } }, "projectLoadTimes": ":176", "fileOpenTimes": ":637", "ModuleDepsResolved": 564025, "AppStartupTime": 565404, "prefNodeSearchDisabled": false, "prefInstantSearchDisabled": false, "installedExtensions": [ { "name": "0674272bac.tagrenamer", "version": "0.0.2" }, { "name": "brackets-beautify", "version": "1.2.0" }, { "name": "brackets-css-color-preview", "version": "0.0.7" }, { "name": "brackets-html-wrapper", "version": "1.2.0" }, { "name": "brackets-indent-guides", "version": "1.3.5" }, { "name": "brackets-minimap", "version": "3.2.5" }, { "name": "brackets-paste-and-indent", "version": "0.2.0" }, { "name": "brackets-php-syntax-hint", "version": "1.1.5" }, { "name": "brackets-special-html-chars", "version": "1.2.4" }, { "name": "brackets-various-improvements", "version": "2.2.1" }, { "name": "brackets-workspaces", "version": "2.1.3" }, { "name": "brackets.swatcher", "version": "1.2.2" }, { "name": "busykai.indent-right", "version": "0.1.0" }, { "name": "camden.w3cvalidation", "version": "2.2.2" }, { "name": "colorhints", "version": "1.1.2" }, { "name": "delkos", "version": "0.0.3" }, { "name": "dnbard.extensions-rating", "version": "0.7.4" }, { "name": "drewkoch.icons", "version": "1.3.1" }, { "name": "enturn.quick-search", "version": "1.1.4" }, { "name": "fede91.brackets-preferences-ui", "version": "1.4.0" }, { "name": "hirse.outline-list", "version": "0.7.0" }, { "name": "insya.newdocument", "version": "0.0.4" }, { "name": "insya.tools", "version": "0.2.0" }, { "name": "ivanbarcia.material-light", "version": "1.0.0" }, { "name": "le717.html-skeleton", "version": "1.4.3" }, { "name": "mikaeljorhult.brackets-autoprefixer", "version": "0.6.1" }, { "name": "mikaeljorhult.brackets-todo", "version": "0.8.1" }, { "name": "mikailcolak.brackets-color-picker", "version": "0.1.3" }, { "name": "mirorauhala.bootstrap-skeleton", "version": "0.2.0" }, { "name": "ovk.brackets-simple-todo", "version": "0.1.5" }, { "name": "pflynn.reasonable-comments", "version": "1.3.0" }, { "name": "quickdocsphp", "version": "1.4.7" }, { "name": "rain.monokai-dark-soda", "version": "1.0.9" }, { "name": "scroll-arrows", "version": "0.1.0" }, { "name": "ws-sanitizer", "version": "1.2.1" }, { "name": "jdiehl.less-autocompile", "version": "1.1.10" } ], "bracketsTheme": "delkos" }

core-ai-bot commented 3 years ago

Comment by FLasH3r Friday Jan 08, 2016 at 08:24 GMT


{
    "uuid": "a727db62-798c-4b2e-aa25-63686fb36f6f",
    "snapshotTime": 1452241359546,
    "os": "win",
    "userAgent": "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Brackets/1.5.0.0 Chrome/39.0.2171.36 Safari/537.36",
    "osLanguage": "en-US",
    "bracketsLanguage": "en-US",
    "bracketsVersion": "1.5.0-16538",
    "fileStats": {
        "openedFileExt": {
            "php": 4,
            "json": 5
        },
        "workingSetFileExt": {
            "php": 1
        }
    },
    "ProjectDetails": {
        "prj3059181": {
            "numFiles": 478,
            "cacheSize": 6255919
        }
    },
    "projectLoadTimes": ":180",
    "fileOpenTimes": ":676",
    "ModuleDepsResolved": 59899,
    "AppStartupTime": 61131,
    "prefNodeSearchDisabled": false,
    "prefInstantSearchDisabled": false,
    "installedExtensions": [],
    "bracketsTheme": "dark-theme"
}
core-ai-bot commented 3 years ago

Comment by azinod Sunday Jan 17, 2016 at 15:47 GMT


I do have the same problem. Will edit this later with Health data.

Also, there is this other ticket with apparently the same issue. You may want to make it a single thing: https://github.com/adobe/brackets/issues/12062

@Edit --- possible fix: Update guys... I managed to fix the problem, or at least greatly improve performance to a level that I can use comfortably.

What I did was close Brackets and run it as an Administrator in Windows 10. Try it in your systems. Now I am using the admin profile in my notebook so that option is always visible... if you are not using the built in admin profile, I think you have to 'shift+rightclick' or 'ctrl+rightclick' the icon to get the 'Open as Administrator'.

In windows 10, if you go to: right click on brackets > properties > compatibility, you have the option to permanently open it as Administrator (at least I see it, but again I am using the built in Admin account).

Keep in mind that you may need to provide Admin credentials, if you are not an admin yourself or are not using the built in Admin profile.

I hope this also solve the problem for you.

@FLasH3r@caleb87@ozzyjr

core-ai-bot commented 3 years ago

Comment by caleb87 Sunday Jan 17, 2016 at 19:00 GMT


azinod, thanks for the suggestion, but running as Administrator did not solve the issue for me. I'm running Windows 7 Ultimate. I will open the same files on my Ubuntu laptop and see if I can replicate the problem.

Has anyone experienced this on Linux?

core-ai-bot commented 3 years ago

Comment by ozzyjr Monday Jan 18, 2016 at 15:54 GMT


Hello@azinod Did the procedure as described and seem to work for me in Windows 10, thank you.

Let's see if the solution remains stable over the course of the day.

@FLasH3r@caleb87

core-ai-bot commented 3 years ago

Comment by FLasH3r Monday Jan 18, 2016 at 19:08 GMT


I must admit it did give a bit of a boost, I'm going to test it tomorrow a bit more on larger files (3k+ JS files).

FYI. the slowness happens on my laptop only. my desktop machine works without this "hack"

core-ai-bot commented 3 years ago

Comment by azinod Monday Jan 18, 2016 at 20:27 GMT


It also only happened on my Windows 10 personal Notebook, which is a Lenovo T450.

The notebook at my work is a previous version (a T430) with Windows 7 that is much less capable than my personal notebook and does not have the problem.

I do think the problem should be related to some kind of permission that Brackets is not getting into the system, and that is making it performs very heavily. Running it in Admin mode is granting that permission, but for those that are still facing the problem maybe there is more to it.

Maybe reinstalling Brackets and making sure you are clicking on 'Allow' on all those 'Brackets is trying to do stuff to your system, will you allow it?' questions? Or even going to your User Account Control Settings and set it to Never notify, and then reinstall Brackets... and ultimatelly try the Run as Admin trick again.

Hopefully this problems get some attention and they find the issue and eventually a fix for it so we don't need to run Brackets as Admin... thankfully not the whole community is being impacted by it though.

core-ai-bot commented 3 years ago

Comment by caleb87 Tuesday Jan 19, 2016 at 22:17 GMT


I want to note again that the problem only happens in large files. I can even type fast in comments in those large files. The problem doesn't occur in small files. Since comments have no code parsing, it's easy to see the problem is related to code parsing.

I have an index.html web app that is heavy in JS. Files that are under 1000 lines are fast.

It seems that there may be two problems causing choppy typing. 1) Admin permissions are needed 2) Faulty code parsing

Has anyone not experienced this issue with 5000+ lines of code? 10k+? Those who solved their issue with permissions have any issues with files with 5k+ lines?

core-ai-bot commented 3 years ago

Comment by azinod Wednesday Jan 20, 2016 at 02:03 GMT


I loaded some heavy files to test and mine worked fine, as soon as the document was loaded. Using the admin permission of course.

core-ai-bot commented 3 years ago

Comment by swmitra Wednesday Jan 20, 2016 at 06:58 GMT


I had analysed this issue sometime back. The actual problem is not related to permission rather extraction of js code from an html file slows it down. We use linear token parsing on the html doc to preserve location info of each and every js statement in script blocks. Parsing time is directly proportional to the number of lines in the html file.

As this linear parsing happens in the main thread itself , typing performance is affected. In a large html file you might find slugging cursor movement, key buffering while typing in a script block only.

One of the convenient way to fix this issue is to have the parsing out of the main thread. It can be in the web worker where we do tern analysis or in node ( a separate PR exists to move tern analysis on node ) .

core-ai-bot commented 3 years ago

Comment by ozzyjr Wednesday Jan 20, 2016 at 10:56 GMT


Hello everyone

@ caleb87 not necessarily need to be a heavy file. Was working on a .less file with about 1700 lines and was impossible to work in the same way another .less of 340 lines and a pure html, with 51 lines. And I'm using a z200 workstation from HP.

So I think it's a bug same as in previous versions did not have this problem and theazinod tip of all is ok now.

core-ai-bot commented 3 years ago

Comment by FLasH3r Wednesday Jan 20, 2016 at 17:03 GMT


@ozzyjr is correct IMO, I'm also working on PHP files current one is about 1200~ lines.

@swmitra what about other languages then JS ?

core-ai-bot commented 3 years ago

Comment by zbandhan Tuesday Feb 23, 2016 at 13:15 GMT


same issue here in linuxmint.

core-ai-bot commented 3 years ago

Comment by proto-typical Saturday Apr 09, 2016 at 14:54 GMT


There is definitely a lag problem, and I have pinpointed that it's directly related to the size of the file you are editing and codehint.JSHints flag set to true. If I start a new file or open one with just 10 lines, there is no lag whatsoever. But working with a file of 2500 lines, it's a horrific lag.

Obviously a workaround is breaking my project down into smaller files, however I think many users would choose to just use a editor that doesn't lag on a 102k text based file.

Let me know if you need more information, I am experiencing this on a Macbook Pro with OSX 10.11.4 (El Capitan) 16GB i5 SSD and version 1.6 of Brackets, no extensions running.

I also posted this on bug #9486 and #9980 because this is imo the same issue.

core-ai-bot commented 3 years ago

Comment by zbandhan Sunday Apr 10, 2016 at 09:42 GMT


Big No But Bigger. The cursor is lagging like the tortoise that is making me cry. Sometimes I am throwing Brackets, my favorite code editor, out. Plz solve this problem.

core-ai-bot commented 3 years ago

Comment by ajota Tuesday May 24, 2016 at 13:48 GMT


12408

core-ai-bot commented 3 years ago

Comment by pozitronix Tuesday Feb 28, 2017 at 15:46 GMT


same issue with a large complex HTML/JS/CSS file. Really slow

core-ai-bot commented 3 years ago

Comment by cdpritcha Tuesday Nov 28, 2017 at 21:25 GMT


Still seeing the same issue here. I can't believe this is still an ongoing problem. 2 years later... I'd love to dump Brackets, but it has a few features that I love. But the lag is killing me!