yesod-static-streamly-0.1.3.6: A streamly-based library providing performance-focused alternatives for functionality found in yesod-static.
Copyright(c) Matthew Mosior 2023
LicenseBSD-style
Maintainermattm.github@gmail.com
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Yesod.Static.Streamly

Description

Streamly-based alternative functionality for Yesod.Static.

This library utilizes Streamly's superb performance characteristics to replace some of Yesod's functionality with streamly-based functionality.

If you have large files to cache within your static directory, you may very well need to increase you file descriptor limit in order to utilize staticStreamly and staticFilesStreamly properly.

Synopsis

Yesod.Static Replacement functions

staticStreamly Source #

Arguments

:: FilePath

file path of static directory

-> Int

buffer size (0.25 - 0.50 x your L2 cache seems to be best.)

-> IO Static 

A more performant replacement of static found in Yesod.Static.

staticFilesStreamly Source #

Arguments

:: FilePath

file path of static directory

-> Int

buffer size (0.25 - 0.50 x your L2 cache seems to be best.)

-> Q [Dec] 

A more performant replacement of staticFiles found in Yesod.Static.