Avatar for the pyapp-kit user
pyapp-kit
psygnal
BlogDocs

feat: add signal aliases on SignalGroup

#299Merged
Comparing
getzze:signal-aliases
(
cfa8f71
) with
main
(
33a6f20
)
+14%
Improvements
1
Regressions
0
Untouched
65
New
0
Dropped
0
Ignored
0

Benchmarks

Improved

test_emit_time[lambda-2]
tests/test_bench.py::test_emit_time[lambda-2]
+14%
65.7 µs
57.6 µs

Passed

test_emit_time[setattr-18]
tests/test_bench.py::test_emit_time[setattr-18]
+2%
62.9 µs
61.9 µs
test_connect_time[setitem-]
tests/test_bench.py::test_connect_time[setitem-]
+2%
63.1 µs
62.2 µs
test_emit_time[partial-18]
tests/test_bench.py::test_emit_time[partial-18]
+1%
84.8 µs
83.7 µs
test_emit_time[function-50]
tests/test_bench.py::test_emit_time[function-50]
+1%
100.5 µs
99.2 µs
test_emit_time[lambda-34]
tests/test_bench.py::test_emit_time[lambda-34]
+1%
86.3 µs
85.2 µs
test_emit_time[partial-34]
tests/test_bench.py::test_emit_time[partial-34]
+1%
109 µs
107.6 µs
test_emit_time[setattr-2]
tests/test_bench.py::test_emit_time[setattr-2]
+1%
55.8 µs
55.1 µs
test_connect_time[lambda-check_types]
tests/test_bench.py::test_connect_time[lambda-check_types]
+1%
145.4 µs
143.6 µs
test_connect_time[setattr-]
tests/test_bench.py::test_connect_time[setattr-]
+1%
62.2 µs
61.5 µs
test_emit_time[function-18]
tests/test_bench.py::test_emit_time[function-18]
+1%
72 µs
71.1 µs
test_connect_time[lambda-]
tests/test_bench.py::test_connect_time[lambda-]
+1%
141 µs
139.4 µs
test_emit_time[setitem-18]
tests/test_bench.py::test_emit_time[setitem-18]
+1%
69.7 µs
68.9 µs
test_emit_time[setitem-50]
tests/test_bench.py::test_emit_time[setitem-50]
+1%
94 µs
93.1 µs
test_connect_time[print-]
tests/test_bench.py::test_connect_time[print-]
+1%
147.4 µs
145.9 µs
test_emit_time[lambda-50]
tests/test_bench.py::test_emit_time[lambda-50]
+1%
100.3 µs
99.3 µs
test_emit_time[print-18]
tests/test_bench.py::test_emit_time[print-18]
+1%
176.5 µs
174.8 µs
test_emit_time[print-34]
tests/test_bench.py::test_emit_time[print-34]
+1%
274.7 µs
272.1 µs
test_emit_time[setattr-34]
tests/test_bench.py::test_emit_time[setattr-34]
+1%
70 µs
69.3 µs
test_emit_time[partial_method-2]
tests/test_bench.py::test_emit_time[partial_method-2]
+1%
63.8 µs
63.3 µs
test_emit_time[partial-2]
tests/test_bench.py::test_emit_time[partial-2]
+1%
60.9 µs
60.4 µs
test_emit_time[partial_method-34]
tests/test_bench.py::test_emit_time[partial_method-34]
+1%
121.6 µs
120.6 µs
test_emit_time[print-50]
tests/test_bench.py::test_emit_time[print-50]
+1%
372.6 µs
369.5 µs
test_emit_time[lambda-18]
tests/test_bench.py::test_emit_time[lambda-18]
+1%
72 µs
71.4 µs
test_emit_time[method-34]
tests/test_bench.py::test_emit_time[method-34]
+1%
103.5 µs
102.7 µs
test_emit_time[setattr-50]
tests/test_bench.py::test_emit_time[setattr-50]
+1%
76.8 µs
76.3 µs
test_emit_time[real_func-2]
tests/test_bench.py::test_emit_time[real_func-2]
+1%
64.8 µs
64.4 µs
test_emit_time[setitem-2]
tests/test_bench.py::test_emit_time[setitem-2]
+1%
57.6 µs
57.3 µs
test_emit_time[print-2]
tests/test_bench.py::test_emit_time[print-2]
+1%
85.5 µs
85.1 µs
test_emit_time[function-34]
tests/test_bench.py::test_emit_time[function-34]
+1%
86.1 µs
85.6 µs
test_connect_time[setitem-check_types]
tests/test_bench.py::test_connect_time[setitem-check_types]
+1%
67.6 µs
67.3 µs
test_emit_time[setitem-34]
tests/test_bench.py::test_emit_time[setitem-34]
+1%
81.8 µs
81.4 µs
test_emit_time[method-2]
tests/test_bench.py::test_emit_time[method-2]
0%
61.6 µs
61.3 µs
test_connect_time[setattr-check_types]
tests/test_bench.py::test_connect_time[setattr-check_types]
0%
68.2 µs
67.9 µs
test_emit_time[method-50]
tests/test_bench.py::test_emit_time[method-50]
0%
124.4 µs
123.9 µs
test_emit_time[method-18]
tests/test_bench.py::test_emit_time[method-18]
0%
82 µs
81.8 µs
test_emit_time[function-2]
tests/test_bench.py::test_emit_time[function-2]
0%
64 µs
63.9 µs
test_connect_time[function-check_types]
tests/test_bench.py::test_connect_time[function-check_types]
0%
156 µs
155.8 µs
test_dataclass_setattr[dataclass]
tests/test_bench.py::test_dataclass_setattr[dataclass]
0%
752.8 µs
751.9 µs
test_emit_time[partial_method-50]
tests/test_bench.py::test_emit_time[partial_method-50]
0%
151.1 µs
151.2 µs
test_dataclass_setattr[msgspec]
tests/test_bench.py::test_dataclass_setattr[msgspec]
0%
766.4 µs
767 µs
test_connect_time[method-check_types]
tests/test_bench.py::test_connect_time[method-check_types]
0%
183.3 µs
183.5 µs
test_evented_creation
tests/test_bench.py::test_evented_creation
0%
1.7 ms
1.7 ms
test_connect_time[print-check_types]
tests/test_bench.py::test_connect_time[print-check_types]
0%
206.5 µs
206.9 µs
test_create_signal_instance
tests/test_bench.py::test_create_signal_instance
0%
27.8 µs
27.9 µs
test_connect_time[partial_method-]
tests/test_bench.py::test_connect_time[partial_method-]
0%
275.2 µs
275.9 µs
test_emit_time[real_func-18]
tests/test_bench.py::test_emit_time[real_func-18]
0%
99.3 µs
99.6 µs
test_dataclass_setattr[pydantic]
tests/test_bench.py::test_dataclass_setattr[pydantic]
0%
859.6 µs
862.2 µs
test_emit_time[partial_method-18]
tests/test_bench.py::test_emit_time[partial_method-18]
0%
93.7 µs
94 µs
test_connect_time[function-]
tests/test_bench.py::test_connect_time[function-]
0%
139.7 µs
140.2 µs
test_connect_time[partial-check_types]
tests/test_bench.py::test_connect_time[partial-check_types]
0%
257.7 µs
258.6 µs
test_emit_time[real_func-34]
tests/test_bench.py::test_emit_time[real_func-34]
0%
133.2 µs
133.8 µs
test_connect_time[real_func-check_types]
tests/test_bench.py::test_connect_time[real_func-check_types]
0%
125.9 µs
126.4 µs
test_connect_time[partial_method-check_types]
tests/test_bench.py::test_connect_time[partial_method-check_types]
0%
282.6 µs
283.8 µs
test_emit_time[partial-50]
tests/test_bench.py::test_emit_time[partial-50]
-1%
132.9 µs
133.6 µs
test_emit_time[real_func-50]
tests/test_bench.py::test_emit_time[real_func-50]
-1%
167.4 µs
168.2 µs
test_connect_time[method-]
tests/test_bench.py::test_connect_time[method-]
-1%
175 µs
176.1 µs
test_connect_time[partial-]
tests/test_bench.py::test_connect_time[partial-]
-1%
243 µs
244.7 µs
test_dataclass_setattr[attrs]
tests/test_bench.py::test_dataclass_setattr[attrs]
-1%
768.2 µs
773.8 µs
test_connect_time[real_func-]
tests/test_bench.py::test_connect_time[real_func-]
-1%
121.6 µs
123.1 µs
test_create_signal
tests/test_bench.py::test_create_signal
-1%
74.1 µs
75.1 µs
test_dataclass_group_create[attrs]
tests/test_bench.py::test_dataclass_group_create[attrs]
-1%
587.7 µs
596.5 µs
test_evented_setattr
tests/test_bench.py::test_evented_setattr
-2%
27.6 µs
28.1 µs
test_dataclass_group_create[msgspec]
tests/test_bench.py::test_dataclass_group_create[msgspec]
-2%
589.2 µs
600.7 µs
test_dataclass_group_create[pydantic]
tests/test_bench.py::test_dataclass_group_create[pydantic]
-3%
591.2 µs
606.5 µs
test_dataclass_group_create[dataclass]
tests/test_bench.py::test_dataclass_group_create[dataclass]
-3%
497.8 µs
512.8 µs

Commits

Click on a commit to change the comparison range
Base
main
33a6f20
0%
style(pre-commit.ci): auto fixes [...]
5b9a784
9 months ago
by pre-commit-ci[bot]
0%
clean
52bec2f
9 months ago
by getzze
-10%
compat py38
72a62de
9 months ago
by getzze
+10%
cover group.signals
3d445a3
9 months ago
by getzze
+15%
Merge branch 'main' into signal-aliases
a75bb53
8 months ago
by tlambert03
-1%
Merge branch 'signal-aliases' of https://github.com/getzze/psygnal into signal-aliases
4678ca4
8 months ago
by tlambert03
0%
use type alias
02377b7
8 months ago
by tlambert03
0%
go back to optional str
49738d1
8 months ago
by tlambert03
+1%
simplify with_aliases
aea60c7
8 months ago
by getzze
-2%
revert with_aliases
0c30d1f
8 months ago
by getzze
+1%
remove from public
cfa8f71
8 months ago
by tlambert03
Home Terms PrivacyDocs