package cascade

  1. Overview
  2. Docs
CSS generation and manipulation library for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

cascade-1.1.0.tbz
sha256=c303651e043ed8d807d3d6f2c3745233e792ce7c30d562c9717d284e1bf5ac6a
sha512=681847993deabdc3899f62268b3cbc931623abca0413b0e8873e8568ec25a86c4d3db7f7f0e6a6a6bf24dbfdc7df314dae07ae66d49f76f3dd6953a4381bbf54

doc/cascade/Cascade/Preflight/index.html

Module Cascade.PreflightSource

Cheap gate for the expensive global factoring fixpoint.

Sourcetype t

Summary of the factoring opportunity surface.

Sourceval small_declaration_threshold : int

Declaration count below which factoring always runs.

Sourceval summarize : Stylesheet.rule list -> t

summarize rules computes the cheap opportunity summary for rules.

Sourceval declaration_count : t -> int

declaration_count t is the total number of declarations seen.

Sourceval source_units : t -> int

source_units t is a cheap weighted source-size estimate.

Sourceval estimated_gain : t -> int

estimated_gain t is the cheap byte-saving proxy.

Sourceval useful : t -> bool

useful t is true when the estimated gain justifies running the full factoring fixpoint. Small inputs always return true.