Daily Usage Issues

Test context menu is slow to show.

Started by damianh on 7,190 views

Hi,

something that has been irking me lately and I'm not sure if it's been introduce in a recent update or not... the test context menu (right clicking a test in the NCrunch Tests window, or "Tests covering line" popup in the editor) takes 1 to 2 seconds to show after right clicking. This is long enough that I think it's not being responsive and repeat the right click which sometimes registers a click in the menu as it shows momentarily before hand.

Context menus should be near instantaneous (<250ms) to show.

Cheers
Hi, thanks for sharing this issue.

This isn't normal behaviour. Are you noticing anything else behaving slower than normal in the UI? Are you using the Risk/Progress indicator at all? Does closing all open NCrunch windows make any difference?
FWIW, I've noticed this lately as well (v3.7.0.4 with vstudio 2015, and also repro'd in vstudio2015 and 3.10.0.20).
Seems to be pretty quick with a fresh vstudio session but quickly becomes slow (in this case I had it running for 1 hour and devenv process consumes ~1GB).
See https://www.screencast.com/t/4DceZsQW
(Closing all other NCrunch windows did not help).

Edited

Thanks. I've put this area of code under a microscope, and it doesn't seem to be performing as well as it should be.

I think this is caused by a performance problem in the context menu control itself. NCrunch builds the context menu dynamically every time its shown (as the contents can vary depending on the test). I don't see a quick and easy way to fix this, so it'll probably require a design change. I'll see what I can do about including this in the next version.
FWIW: Now it takes about 5s for menu to show with an vstudio2015 instance been riunning for 6 days, and sometimes the "wait" cursor appears and screen blinks and then context menu is not showing at all (behavior seems to appear randomly, not reproducicable in attached screencast) https://www.screencast.com/t/b1b7REcqzgIL.
I too have noticed this issue in recent NCrunch builds. We're running VS 2017, and the context menu takes often maybe 2 full seconds to appear. Glad to hear it might get a touch up.

Post a reply

Log in to reply.