package cascade

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

cascade-1.0.0.tbz
sha256=c11bbdc7ab0eee8c03cd162e3e7fd1cb20de62beb13342b3b150a89264ee0056
sha512=43fd97a55c3b1dc4db5c87aa1a5a047d902e902ab2064af3a7c5bf945ebc333f8cd90ecca8013c17be5b950498eace8e0094ee4319eba408285e2bec8d7cdf7b

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.