1
Is there a possibility to increase the degree of parallel processing
Question asked by Reto Kummer - 7/1/2022 at 12:32 PM
Answered
Hello fellow Ghosties ;)

I was wondering if there's a way (maybe a non-default setting value or something), which makes GhostDoc (Pro, VS2022) use more threads / tasks when documenting a full project.

When I start for example on my current project. It predicts like 2h of work. While not being bottlenecked by disk (barely any reads, as I have everything in memory already) it also doesn't really use the raw processing power of my machine. At max it uses like 40% CPU, most of the time more like 30%.

Would be nice to have like a "Degree of Parallelism" to be set by the user or an automatic adjustment. Maybe initially set by numbers of cores * 2 (in case of hyperthreading) , and then gradually adjusting when the CPU idletime percentage value is is so high.

All the best
RK

3 Replies

Reply to Thread
0
Serge B. Replied
Employee Post Marked As Answer
Hi Reto,

This is a great suggestion but unfortunately, this can't be done at this point. GhostDoc provides the Undo stack for all changes and generated/updated comments and works directly with the VS editor and IDE to provide that functionality. For GhostDoc to work with the VS editor it can only be done in a sync manner.

Thanks!
Serge Baranovsky
SubMain Software
(800) 936-2134
0
Reto Kummer Replied
I understand the limititation, anyway let me theorize a bit anyway ;)

If i understand you correctly, the problem is in regards to have the complete action stack for step-wise undo possibility, right? 

Me personally, I use source versioning for the possibility to undo changes - in my case, git - and to be honest, undoing changes etc. is so much quicker just reverting the changes or going back to the usual safety commit before the changes happend, as every changing action directly in the editor triggers all these little helpers that rely on code analysis, but thats just me.

Resharper seems to leave the option to us, asking us if we want to allow it to open all these files in order to have undo or not (and thereby processing faster - and making more use of the CPU) - maybe an option to look into?

Anyway thanks for your time
stay safe
Reto
0
Serge B. Replied
Employee Post
Thanks, Reto, we will add this to the list.
Serge Baranovsky
SubMain Software
(800) 936-2134

Reply to Thread