Optimizing Performance in Shiny: Tips and Best Practices
summary
Shows a 3-plot, 1-table Shiny example (5k sample, full data ~900k) and benchmarks CSV readers (broom faster among CSV readers) versus parquet files (arrow) load fastest; uses RStudio profiler (prof) and JavaScript shinyTikTok for client-side timings plus microbenchmark for I/O. Demonstrates quick fixes: switch to parquet, replace ggplot with plotly and DT with server-side processing, move repeated filtering into a single reactive, add bindCache + bindEvent or future/promises (extended task) to offload long work; deployed to Posit Connect but heavy concurrent load breaks the free instance.
AI-written summary · about
