Can one go faster than app.UseStaticFiles() ?
Ive used app.get and experimented on things like:
- reading few html files asynchronously instead of just one, on each app.get request.
- reading html files to variables before any request, then just printing html content with that variable using WriteAsync with app.get
but i didnt really get any faster than if I just used app.UseStaticFiles() .
Whenever i refreshed page with cache disabled it took 10 - 20ms to load (localhost).
if i'll put website public then it will be slower by the distance between client and host so that may add 10-200ms.
but anyway i was wondering if its possible to go faster than UseStaticFiles official aspnetcore method ?
Or maybe im trying to get more speed in wrong place?
0 comments:
Post a Comment