codecadwallader / codemaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.9k stars 358 forks source link

Spade is too slow with large C++ files #998

Open richardeakin opened 1 year ago

richardeakin commented 1 year ago

Environment

Description

I installed the Codemaid extension specifically for the "Digging (Spade)" feature as this is a crucial component of VS that I find lacking, however after using it for a couple months, I'm finding it to be too slow for practical use. This is especially true on large C++ files, take for example anything in Dear ImGui which can be found in numerous open source projects.

If I have Spade open and try to look at imgui.h or imgui_widgets.cpp for examples, I get an editor freeze for the next 10 seconds or so. I have a 12 core i9 PC and the code lives on an M.2 SSD, so can't get too much faster concerning hardware.

In any event thank you for the nice open source plug-in, hope to be using it in the future!

codecadwallader commented 1 year ago

Thanks for reporting the issue. We do know there is a linear performance impact based on the size of the file, so when files are 3k-14k lines as in those examples this is unfortunately as expected.