Copyright | (c) Matthew Mosior 2023 |
---|---|
License | BSD-style |
Maintainer | mattm.github@gmail.com |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- staticStreamly :: FilePath -> Int -> IO Static
- staticFilesStreamly :: FilePath -> Int -> Q [Dec]
Yesod.Static Replacement functions
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.
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.