Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alert slow with callback and large memory reactive #19

Closed
dkulp2 opened this issue Oct 26, 2018 · 2 comments
Closed

Alert slow with callback and large memory reactive #19

dkulp2 opened this issue Oct 26, 2018 · 2 comments

Comments

@dkulp2
Copy link

dkulp2 commented Oct 26, 2018

If there is a reactive object that is very large then the shinyalert modal is very slow when there is an R callback.

This is a very odd problem and I spent hours trying to create a minimal example. I find on both Linux and Windows that clicking the modal with callback will take over ten seconds to display if the allocated matrix is over a GB. But the modal without the callback is fast regardless.

Here's sample code: https://gist.github.com/dkulp2/f1a773fcf29cfccd788bc7c8b7b35189

Let me know if I can help. This has become a problem with a production app and I'm eager to try to resolve it.

@daattali
Copy link
Owner

Thanks for the report and the great reprex, and for taking the time yourself to pinpoint when the problem happens. This has been fixed, please confirm on your end as well.

@dkulp2
Copy link
Author

dkulp2 commented Oct 29, 2018

Fixed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants