BlogDocs

fix: fix use of computed_field setter with field_dependencies(#336)

Merged
Comparing
tlambert03:fix-computed-field
(
adfd566
) with
main
(
37bd312
)
0%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
67
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

Passed

test_create_signal_instance
tests/test_bench.py::test_create_signal_instance
+1%
33.7 µs
33.2 µs
test_connect_time[print-]
tests/test_bench.py::test_connect_time[print-]
+1%
146.5 µs
145 µs
test_emit_time[partial_method-2]
tests/test_bench.py::test_emit_time[partial_method-2]
+1%
64.4 µs
63.8 µs
test_connect_time[partial_method-check_types]
tests/test_bench.py::test_connect_time[partial_method-check_types]
+1%
284.9 µs
282.6 µs
test_connect_time[print-check_types]
tests/test_bench.py::test_connect_time[print-check_types]
+1%
205.8 µs
204.5 µs
test_connect_time[partial-check_types]
tests/test_bench.py::test_connect_time[partial-check_types]
+1%
256.4 µs
254.8 µs
test_emit_time[function-2]
tests/test_bench.py::test_emit_time[function-2]
+1%
65.4 µs
65 µs
test_connect_time[function-check_types]
tests/test_bench.py::test_connect_time[function-check_types]
0%
157.1 µs
156.5 µs
test_emit_time[partial-2]
tests/test_bench.py::test_emit_time[partial-2]
0%
61.7 µs
61.4 µs
test_evented_setattr
tests/test_bench.py::test_evented_setattr
0%
27.7 µs
27.6 µs
test_connect_time[setattr-]
tests/test_bench.py::test_connect_time[setattr-]
0%
61.5 µs
61.3 µs
test_connect_time[method-check_types]
tests/test_bench.py::test_connect_time[method-check_types]
0%
186.4 µs
185.8 µs
test_connect_time[real_func-check_types]
tests/test_bench.py::test_connect_time[real_func-check_types]
0%
126.8 µs
126.4 µs
test_emit_time[setattr-2]
tests/test_bench.py::test_emit_time[setattr-2]
0%
56.1 µs
55.9 µs
test_dataclass_group_create[attrs]
tests/test_bench.py::test_dataclass_group_create[attrs]
0%
538.3 µs
536.8 µs
test_dataclass_group_create[pydantic]
tests/test_bench.py::test_dataclass_group_create[pydantic]
0%
542.7 µs
541.8 µs
test_connect_time[partial_method-]
tests/test_bench.py::test_connect_time[partial_method-]
0%
276.3 µs
276 µs
test_emit_time[print-50]
tests/test_bench.py::test_emit_time[print-50]
0%
376 µs
375.6 µs
test_emit_time[method-50]
tests/test_bench.py::test_emit_time[method-50]
0%
127.4 µs
127.3 µs
test_emit_time[print-34]
tests/test_bench.py::test_emit_time[print-34]
0%
277.8 µs
277.5 µs
test_dataclass_setattr[dataclass]
tests/test_bench.py::test_dataclass_setattr[dataclass]
0%
757 µs
756.4 µs
test_emit_time[print-18]
tests/test_bench.py::test_emit_time[print-18]
0%
178.3 µs
178.1 µs
test_emit_time[partial_method-34]
tests/test_bench.py::test_emit_time[partial_method-34]
0%
121.7 µs
121.6 µs
test_emit_time[method-18]
tests/test_bench.py::test_emit_time[method-18]
0%
83.4 µs
83.4 µs
test_dataclass_setattr[pydantic]
tests/test_bench.py::test_dataclass_setattr[pydantic]
0%
861.2 µs
861 µs
test_evented_creation
tests/test_bench.py::test_evented_creation
0%
1.6 ms
1.6 ms
test_emit_time[real_func-34]
tests/test_bench.py::test_emit_time[real_func-34]
0%
131.4 µs
131.4 µs
test_connect_time[setitem-check_types]
tests/test_bench.py::test_connect_time[setitem-check_types]
0%
67.3 µs
67.3 µs
test_emit_time[print-2]
tests/test_bench.py::test_emit_time[print-2]
0%
86 µs
86 µs
test_dataclass_setattr[attrs]
tests/test_bench.py::test_dataclass_setattr[attrs]
0%
771 µs
771.4 µs
test_dataclass_group_create[msgspec]
tests/test_bench.py::test_dataclass_group_create[msgspec]
0%
545.6 µs
546 µs
test_connect_time[real_func-]
tests/test_bench.py::test_connect_time[real_func-]
0%
123.4 µs
123.5 µs
test_emit_time[setattr-50]
tests/test_bench.py::test_emit_time[setattr-50]
0%
76.6 µs
76.7 µs
test_connect_time[setattr-check_types]
tests/test_bench.py::test_connect_time[setattr-check_types]
0%
67.3 µs
67.3 µs
test_emit_time[method-34]
tests/test_bench.py::test_emit_time[method-34]
0%
105.4 µs
105.6 µs
test_dataclass_group_create[dataclass]
tests/test_bench.py::test_dataclass_group_create[dataclass]
0%
521.4 µs
522.2 µs
test_connect_time[lambda-]
tests/test_bench.py::test_connect_time[lambda-]
0%
140 µs
140.2 µs
test_emit_time[partial_method-50]
tests/test_bench.py::test_emit_time[partial_method-50]
0%
150.7 µs
150.9 µs
test_emit_time[partial_method-18]
tests/test_bench.py::test_emit_time[partial_method-18]
0%
92.7 µs
92.9 µs
test_emit_time[setitem-34]
tests/test_bench.py::test_emit_time[setitem-34]
0%
82 µs
82.2 µs
test_emit_time[lambda-34]
tests/test_bench.py::test_emit_time[lambda-34]
0%
89 µs
89.3 µs
test_emit_time[function-34]
tests/test_bench.py::test_emit_time[function-34]
0%
88.5 µs
88.9 µs
test_connect_time[method-]
tests/test_bench.py::test_connect_time[method-]
0%
176.2 µs
176.8 µs
test_emit_time[lambda-50]
tests/test_bench.py::test_emit_time[lambda-50]
0%
103.8 µs
104.2 µs
test_emit_time[setitem-18]
tests/test_bench.py::test_emit_time[setitem-18]
0%
69.6 µs
69.9 µs
test_emit_time[function-50]
tests/test_bench.py::test_emit_time[function-50]
0%
103.9 µs
104.3 µs
test_emit_time[real_func-50]
tests/test_bench.py::test_emit_time[real_func-50]
0%
163.5 µs
164.2 µs
test_emit_time[setattr-34]
tests/test_bench.py::test_emit_time[setattr-34]
0%
69.3 µs
69.6 µs
test_connect_time[partial-]
tests/test_bench.py::test_connect_time[partial-]
0%
242.6 µs
243.7 µs
test_emit_time[lambda-18]
tests/test_bench.py::test_emit_time[lambda-18]
0%
73.4 µs
73.7 µs
test_dataclass_setattr[msgspec]
tests/test_bench.py::test_dataclass_setattr[msgspec]
0%
771 µs
774.8 µs
test_emit_time[partial-18]
tests/test_bench.py::test_emit_time[partial-18]
-1%
84.2 µs
84.6 µs
test_emit_time[setattr-18]
tests/test_bench.py::test_emit_time[setattr-18]
-1%
62.5 µs
62.9 µs
test_emit_time[partial-50]
tests/test_bench.py::test_emit_time[partial-50]
-1%
130.8 µs
131.6 µs
test_emit_time[lambda-2]
tests/test_bench.py::test_emit_time[lambda-2]
-1%
58.7 µs
59 µs
test_emit_time[function-18]
tests/test_bench.py::test_emit_time[function-18]
-1%
73.5 µs
74 µs
test_emit_time[setitem-50]
tests/test_bench.py::test_emit_time[setitem-50]
-1%
93.6 µs
94.2 µs
test_connect_time[setitem-]
tests/test_bench.py::test_connect_time[setitem-]
-1%
61.8 µs
62.2 µs
test_create_signal
tests/test_bench.py::test_create_signal
-1%
68.8 µs
69.3 µs
test_emit_time[method-2]
tests/test_bench.py::test_emit_time[method-2]
-1%
61.5 µs
62.1 µs
test_emit_time[real_func-18]
tests/test_bench.py::test_emit_time[real_func-18]
-1%
98 µs
99.1 µs
test_emit_time[real_func-2]
tests/test_bench.py::test_emit_time[real_func-2]
-1%
64.7 µs
65.5 µs
test_connect_time[function-]
tests/test_bench.py::test_connect_time[function-]
-1%
140.6 µs
142.4 µs
test_emit_time[setitem-2]
tests/test_bench.py::test_emit_time[setitem-2]
-1%
58.4 µs
59.2 µs
test_connect_time[lambda-check_types]
tests/test_bench.py::test_connect_time[lambda-check_types]
-2%
144.3 µs
146.6 µs
test_emit_time[partial-34]
tests/test_bench.py::test_emit_time[partial-34]
-2%
107 µs
109.3 µs
test_emit_fast
tests/test_bench.py::test_emit_fast
-4%
21.4 µs
22.3 µs

Commits

Click on a commit to change the comparison range
base
main
37bd312
-1%
fix: fix use of computed_field setter with property_setters
56c46c0
14 days ago
by tlambert03
0%
extend test
f2c705c
14 days ago
by tlambert03
0%
fix error
adfd566
14 days ago
by tlambert03
ResourcesHomePricingDocsBlogGitHubChangelog
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.