yihui / servr

A simple HTTP server in R
https://cran.rstudio.com/package=servr
278 stars 35 forks source link

Consider using httpuv's static file serving #35

Open wch opened 5 years ago

wch commented 5 years ago

rstudio/httpuv#177 was recently merged in to httpuv's master branch, and it might be useful for servr. It adds the ability to serve files from the filesystem from the background I/O thread using C++ only (no R), so it is faster than going through R, it will not be blocked by the main R thread, and it will not block the main R thread.

yihui commented 5 years ago

Sounds excellent! I'll definitely look into that possibility. Thanks for the information!

wch commented 5 years ago

Also, if there are features that would be useful to add to httpuv's static file serving, please let me know. No guarantee they'll be added, but that feedback would be useful.