todo-tree icon indicating copy to clipboard operation
todo-tree copied to clipboard

Slows down vscode

Open haochenuw opened this issue 3 years ago • 11 comments

Loved this extension, however I found out that when enabled it seems to slow down vscode considerably. Any help is appreciated. Thanks!

haochenuw avatar Jun 22 '21 20:06 haochenuw

Can you post your settings? What sort of size is your workspace?

Gruntfuggly avatar Jun 23 '21 07:06 Gruntfuggly

Try these settings:

{
  "todo-tree.filtering.useBuiltInExcludes": "file and search excludes",
  "todo-tree.tree.scanAtStartup": false
}

wenfangdu avatar Jun 24 '21 12:06 wenfangdu

The codebase is <1000 lines of code. Will try the settings

haochenuw avatar Jun 28 '21 23:06 haochenuw

Please let me know what your other settings are, so I can take a look. Particularly the regex, if you have changed it.

Gruntfuggly avatar Jun 29 '21 07:06 Gruntfuggly

Here's my settins.json

{ "window.zoomLevel": 2,

"sshfs.configs": [
    {
        "label": "NNS Beast",
        "root": "/home/haoche/secure_computation",
        "host": "nns-beast.westus2.cloudapp.azure.com",
        "port": 22,
        "username": "haoche",
        "privateKeyPath": "/Users/haochen/.ssh/id_rsa",
        "name": "nns-beast"
    },
    {
        "host": "20.36.29.102",
        "name": "haovm",
        "password": "HElib<SEAL123",
        "root": "/home/haoche/",
        "username": "haoche"
    }
],
"go.useLanguageServer": true,
"C_Cpp.updateChannel": "Insiders",
"editor.fontFamily": "Menlo",
"testMate.cpp.log.logSentry": "disable_1",
"testMate.cpp.log.userId": "620a95c1e6592a890b516691f18daab4afc39c5a",
"leetcode.workspaceFolder": "/Users/haochen/.leetcode",
"workbench.editor.enablePreview": false,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"cmake.configureOnOpen": true,
"terminal.integrated.fontFamily": "monospace",
"editor.detectIndentation": false,
"terminal.integrated.shell.osx": "/bin/bash",
"explorer.confirmDelete": false,
"debug.onTaskErrors": "debugAnyway",
"emmet.triggerExpansionOnTab": true,
"emmet.includeLanguages": {
    "django-html": "html"
},
"markdown-preview-enhanced.previewTheme": "medium.css",

"emmet.includeLanguages": {
    "ejs": "html",
},

"macros": {
    "commentDown": [
        "editor.action.copyLinesDownAction",
        "cursorUp",
        "editor.action.addCommentLine",
        "cursorDown"
    ], 

    "addSemi": [
        "cursorEnd",
        {"command": "type", "args": {"text": ";"}},
        "cursorDown",
        "cursorHome"
    ], 

    "newFunction":[
        "cusorBottom"
    ]
}

}

haochenuw avatar Jun 29 '21 21:06 haochenuw

Hey, I hope you don't mind if I necro this issue but today I was messing arround with my custom snippets and found intelisense being very slow (2 to 3 seconds to make a suggestion !).

After some digging, It appears that Todo Tree is massively slowing down my intelisense (2000+ ms activation time).

I'm using :

  • VS Code : v1.67.2
  • Todo Tree : v0.0.215

Sov3rain avatar Jun 01 '22 13:06 Sov3rain

After installing Todo Tree my intellisense got headache

Helius01 avatar Jun 23 '22 11:06 Helius01

@haochenuw, @Sov3rain, @Helius01 Is this still an issue for any of you with the latest version of the extension?

Gruntfuggly avatar Feb 16 '23 10:02 Gruntfuggly

@Gruntfuggly

I'm currently testing out on different projects. C#/dotnet/Unity projects were the really slowed ones.

Sov3rain avatar Feb 20 '23 09:02 Sov3rain

Can you post your settings? Also can you enable the debug channel and post the output from there.

I'm struggling to get to the bottom of this because all it's doing is a background search. It has nothing to do with intellisense. I have got theory, but I think it only applies where lots of TODOs are being found.

Gruntfuggly avatar Feb 20 '23 18:02 Gruntfuggly

https://github.com/Gruntfuggly/todo-tree/blob/a6f60e0ce830c4649ac34fc05e5a1799ec91d151/package.json#L32C1-L34C7 @Gruntfuggly Can you change this configuration? I believe that most of the time, there is no need for this extension to run automatically.

jackiotyu avatar Dec 26 '23 02:12 jackiotyu