perf: v0.15 Welle 0 — Quick-Wins (Hot-Path-Allokationen + Typlöcher)#162
Merged
Conversation
Allokations-freie Hot-Paths, geschlossene Typlöcher, Doku-Sichtbarkeit. Verhaltens-aequivalent; keine oeffentlichen Signaturen entfernt/umbenannt. - perf(math): Polygon.project() inline ohne clone/map/spread (SAT-Hot-Path) - perf(rendering): Container.contains() for-Schleife statt .some-Closure - perf(core): _invalidateBoundsCascade am dirty-Vorfahren kurzschliessen - perf(input): InputManager pointers mit Map statt Record (kein Object.values/Frame) - perf(particles): WebGPU-Uniform direkte Index-Writes statt 44-Element-Literal - refactor(types): Loadable/AssetInput => unknown; gratuitoesen View.updateId-Cast + dadurch redundante Folge-Casts in Loader/SceneNode entfernt - docs(math): Collision-Bezeichner klargestellt; Time.temp/Polygon.temp @internal Tests: Polygon.project()-Coverage + Cascade-Kurzschluss-Korrektheitstest. API-Docs (time/polygon.mdx) fuer die @internal-Marker regeneriert.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v0.15 Welle 0 — Quick-Wins
Erster PR des v0.15-Härtungs-Release. Reiner Gewinn: Hot-Path-Mikro-Allokationen entfernt, Typlöcher geschlossen, Doku-Sichtbarkeit präzisiert. Verhaltens-äquivalent — keine öffentlichen Signaturen entfernt/umbenannt; public-API-snapshot-neutral.
Spec:
.workspace/specs/v0.15-hardening/01-quick-wins.mdSlices
Polygon.project()inline ohneclone()/map/Spread — allokationsfrei im SAT-Hot-Path (getCollisionSatruft es 2·(nA+nB)× pro Paar). + Coverage-Test (Projektion, unnormalisierte Achse,result-Reuse).Container.contains()for-Schleife statt.some(closure)— Hit-Test-Pfad._invalidateBoundsCascadebricht am ersten bereitsBoundsRect-dirty Vorfahren ab. Invarianz verifiziert (3 Push-Stellen; Subtree markiert abwärts, Cascade aufwärts → disjunkt; einziger OverrideSpriteist Blatt). + Korrektheitstest (kein übersprungenes Level).InputManager.pointersRecord→Map— keinObject.values()-Wegwerf-Array pro Frame inupdatePointerEvents.Loadable/AssetInputany→unknown; gratuitösenView.updateId-Cast entfernt (+ dadurch redundante Folge-Casts inLoader/SceneNode).Collision-Doppelbezeichner inmath/indexklargestellt;Time.temp/Polygon.temp@internal.Verifikation (lokale CI-Parität)
time.mdx/polygon.mdxfür@internalregeneriert) ✅