yesod-static-streamly-0.1.5.3: 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 the functionality this library provides properly.

Synopsis

Yesod.Static Replacement functions - Smart constructor

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.

staticDevelStreamly 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 staticDevel found in Yesod.Static.

Yesod.Static Replacement functions - Combining CSS/JS

combineStylesheetsStreamly' Source #

Arguments

:: Bool

development? if so, perform no combining

-> CombineSettingsStreamly 
-> Name

Static route constructor name, e.g. 'StaticR

-> [Route Static]

files to combine

-> Int

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

-> Q Exp 

A more performant replacement of combineStylesheets' found in Yesod.Static.

combineScriptsStreamly' Source #

Arguments

:: Bool

development? if so, perform no combining

-> CombineSettingsStreamly 
-> Name

Static route constructor name, e.g. 'StaticR

-> [Route Static]

files to combine

-> Int

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

-> Q Exp 

A more performant replacement of combineScripts' found in Yesod.Static.

Yesod.Static Replacement functions - Template Haskell helpers

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.

staticFilesListStreamly Source #

Arguments

:: FilePath

file path of static directory

-> [FilePath] 
-> Int

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

-> Q [Dec] 

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

staticFilesMapStreamly Source #

Arguments

:: FilePath

file path of static directory

-> Map FilePath FilePath 
-> Int

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

-> Q [Dec] 

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

staticFilesMergeMapStreamly Source #

Arguments

:: FilePath

file path of static directory

-> Map FilePath FilePath 
-> Int

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

-> Q [Dec] 

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

publicFilesStreamly 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 publicFiles found in Yesod.Static.