RonnyJJ / superputty

Automatically exported from code.google.com/p/superputty
MIT License
0 stars 0 forks source link

Right click on any tab freezes the app for a while #407

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add around 1400-1600 sessions
2. Right-click on any opened tab

>What is the expected output? What do you see instead?
Drop down menu should appear immediately but the app gets stuck for a while. 

>What version of the product are you using? On what operating system?
1.4.0.4

Everything works fine with only few dozens of sessions. But the more sessions 
you have the slower drop-down list is. 

Original issue reported on code.google.com by MaKSok...@gmail.com on 24 Jan 2014 at 6:16

GoogleCodeExporter commented 8 years ago
I had the same problem and did some investigating. The problem is the new 
sessions part of the menu. The library superputty uses for the menu just can't 
handle that number of items. It is also redundant anyway with the session panel.

I checked and if you go to options->GUI-Session Panel then you can disable the 
new sessions menu there. I have twice as many sessions and this fixes the issue 
for me. Right click is instantaneous now.

It would be nice if superputty could do something to handle this better or even 
simply not provide the menu item (I think it is not a valuable feature).

Original comment by j...@gimo.co.uk on 22 Apr 2015 at 10:20

GoogleCodeExporter commented 8 years ago
I also had a look and found the same reason. I didn't go to deep but it seemed 
that menu forming loop takes N^2 time.  As no one was working to resolve this, 
I rebuilt SupperPutty with VisualStudio Express without the menu and happily 
using it now. (Attached)

Original comment by MaKSok...@gmail.com on 23 Apr 2015 at 6:52

Attachments: