Mike C
unread,Aug 7, 2013, 2:48:56 PM8/7/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to shiny-...@googlegroups.com
Hey all,
I have been trying to make my app run more efficiently- because to my surprise, it can be a bit lagged on my 10gb mac desktop. I investigated the memory usage on the machine after restarting, as the program ran and looked to see when it became sluggish responding to the user input. I did not notice it ever having issues with ram, it almost always had at least 7gb free to work with, regardless of how sluggish it was/wasn't.
I then decided to see which tabs it became sluggish after completing- I should probably describe the overall structure of my app. The app is initially divided into many 6 tabs, all of which are page with sidebars. The first tab is a initiation tab, where all the options are set for the analysis ahead, and after filling in all the fields, the analysis is run. The five additional tabs are to generate and view figures and tables from the results of the analysis run on the first tab. In the first tab, one of the fields is a 'select columns', not dissimilar from Winston's example. This is the area in which I test the lag of checkbox clicking, initially, it is very rapid and keeps up with how fast I can click the buttons.
The first tab has ~10 inputs, which are put into reactives and isolated by one of several action buttons. After running the analysis itself, the checkboxes are only slightly more lagged, barely noticeable.
The second tab generates a simple plot, and there are only 3 inputs, which are put into reactives and isolated with an action button. after generating a plot, there is no noticeable difference from the prior step.
The third tab and the fourth tab are similar, in that they have ~10 inputs each, which are turned into isolated reactives, and generate a plot and a table, respectively. It is after generating either of these that the app becomes slow to respond to user input.
The fifth tab itself has only 2 inputs, each turned into an isolated reactive, but has 5 tabs, each of which have 3 tables. There was no lag after generating these tables.
The sixth tab generates between 2 and 40 plots, but it is an optional analysis which takes a while to run, so I haven't tested it yet.
So my question is, has anyone else experienced shiny being slow to respond to your input after generating ~20-30 reactives? Or do you think it may be something else?
Thanks again,
Mike