Bump version to 1.0.0 - #197
Merged
Merged
Conversation
First stable release. Since v0.19.0, observ has had a broad performance overhaul, gained full type-hint coverage and a new trigger_ref API, and picked up a documentation site. New features - trigger_ref(): force-notify the watchers of a proxy, mirroring Vue's triggerRef (#188, closes #123). - Fully typed: modern type hints throughout, a py.typed marker, and ty type-checking enforced in CI (#185, #184, closes #114). Performance - Reworked deep-watch traversal: plain leaf values are filtered out of the traverse stack at push time and raw targets are traversed directly. Traversing large flat/shallow structures is up to ~85% faster (#190). - Lower per-operation trap overhead and proxies constructed with positional flags: reactive reads/writes and proxy creation are ~35-50% faster (#192, #193). - proxy_db lifetimes are managed by reference counting instead of a gc hook, eliminating reference cycles and making cleanup deterministic (#177). - Scheduler and dependency-bookkeeping micro-optimizations: in-place bisect insertion (#191), single-read/write flush counting (#196), a set difference in cleanup_deps (#194), and reading the arg count off the code object in weak() (#195). Correctness - Guarantees, with tests, that observ creates no reference cycles (#189). Documentation - New MkDocs site published to GitHub Pages (#176), with an Internals section (#179) and a rewritten README (#180). Tooling - Modernized CI workflows (#182) and a more robust benchmark guard (#181, #187).
Korijn
approved these changes
Jul 10, 2026
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.
Bumps the version to 1.0.0 — observ's first stable release.
What's in it since v0.19.0
New features
trigger_ref()— force-notify the watchers of a proxy, mirroring Vue'striggerRef(Implement trigger_ref to force-notify watchers of a proxy (closes #123) #188, closes trigger_ref #123).py.typedmarker, andtytype-checking enforced in CI (Fully implement modern type hinting, checked with ty in CI #185, Runtime cleanups split out from the type hinting work #184, closes Type hinting improvements #114).Correctness
proxy_dblifetimes are managed by reference counting instead of agchook, so cleanup is deterministic and no longer relies on the garbage collector (Manage proxy_db lifetimes with reference counting instead of a gc hook #177).Docs & tooling
Performance
The headline of this release. A cluster of changes to the traversal, trap, and proxy-creation hot paths adds up to large wins across the board — deep-watch traversal in particular is up to ~85% faster.
Numbers below are median times from
pytest-benchmark, each version run twice and averaged, on an Apple M1 (CPython 3.14). Lower is better; negative change = faster.Deep-watch traversal (the biggest wins)
Filtering plain leaf values out of the traverse stack at push time and traversing raw targets directly (#190), on top of earlier traverse work.
test_traverse_large_flat_listtest_traverse_stress_large_shallowtest_traverse_matrixtest_traverse_shallowtest_traverse_stress_large_mixedtest_traverse_mixedtest_traverse_listtest_traverse_deeptest_traverse_wideReactive writes
Lower per-operation trap overhead (#192).
test_write_dict_new_key[1k]test_write_list_append[1k]test_write_dict_setitem[1k]test_write_list_setitem[1k]test_write_set_add[1k]test_write_dict_update[1k]Proxy creation
Proxies constructed with positional flags instead of keyword lookups (#193).
test_proxy_creation_dict[10]test_proxy_creation_dict[100k]test_proxy_creation_dict[1k]Reactive reads
test_read_dict_getitem_trackedtest_read_dict_getitem[reactive]test_read_list_getitem[reactive]End-to-end (build + watch + mutate)
Whole-workflow benchmarks, so they fold the wins above together.
test_dict_plain_vs_reactive[reactive]test_list_plain_vs_reactive[reactive]test_deep_watch_mutate_leaf[1k]test_set_plain_vs_reactive[reactive]test_notify_watchers[1k]Plain (non-reactive) baselines are unchanged, as expected (all within ±2% noise).
One regression, called out honestly
test_watcher_creationwent from ~2.6 µs to ~3.4 µs (+30%), consistent across both runs. This is a one-time cost paid when aWatcheris constructed, traded for the much cheaper notification and traversal that every watcher pays repeatedly afterwards. Net effect on any realistic workload is strongly positive — see the end-to-end numbers above.