How can I use compiler package to compile shiny ui / server code to speed up shiny applications?
My current shiny app has first time load time around 4 seconds. After the first load refresh app only takes around 1 second.
My server is xeon 2680 duo and in the same 1000mb network with test pc. Not network issue.
I suspect to precompile shiny ui/server code using compiler library can have 10x time increase which reduce first-time page load from 4 seconds to 0.4 seconds.
I have proof that when I use compiler package compile my other standard alone R application has 20x time speed up.
The question is how to pre-compile shiny server/ui code?