Dart Devs Achieve 100K Ops/Sec on Web Using BlocSignal and Jaspr Framework
The team behind BlocSignal rebuilt their official documentation site at blocsignal.dev using Jaspr, a lightweight Dart-to-HTML framework, to avoid the performance overhead of Flutter Web. Their initial implementation relied on manual .subscribe() callbacks inside StatefulComponent lifecycles, which caused double re-renders, UI thrashing during high-frequency events, and unnecessarily broad component rebuilds. To fix these issues, they migrated to declarative consumer components provided by the bloc_signals_jaspr package, mirroring patterns already established in bloc_signals_flutter. The refactored architecture achieved 100,000 operations per second in compiled JavaScript while also improving developer ergonomics through Dart 3.13 primary constructors. The project serves as a practical case study in dogfooding their own library to validate its real-world performance and idiomatic usage.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in