Performance discipline for www-sacred
mainThe fast-typescript-check discipline is used to ensure www-sacred components remain fast to type-check and performant at runtime. This is specifically critical for the ASCII/canvas animation components that run inside a requestAnimationFrame loop.
Target Components:
components/ASCIICanvas.tsx(Reference implementation)components/MatrixLoader.tsx(Falling-glyph effect)components/CanvasSnake.tsx,components/DOMSnake.tsx,components/CanvasPlatformer.tsx(Interactive games)components/examples/OneLineLoaders.tsx,components/BarLoader.tsx,components/BlockLoader.tsx,components/BarProgress.tsx(Spinners)
Scope:
- Part 1 (Runtime): Applies only to the animation family above. Focuses on minimizing CPU cycles and DOM mutations per frame.
- Part 2 (Compiler): Applies to the entire repository to tighten
tsc --noEmitwall-clock time.