Avatar for the aio-libs user
aio-libs
multidict
BlogDocsChangelog

Fix Memory leaks and add tests to prevent memory leaks during md_clear from passing

#1233Merged
Comparing
Vizonex:fix-pop-memory-leak
(
53b7bb6
) with
master
(
00e3803
)
CodSpeed Performance Gauge
0%
Untouched
242
Ignored
3

Benchmarks

245 total
test_create_multidict_with_items_with_kwargs[cs-c]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
-3%
73.4 µs75.8 µs
test_create_cimultidict_with_items_istr_with_kwargs[c]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
-3%
129.3 µs133.4 µs
test_multidict_getall_str_hit[cs-c]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
+2%
15.1 ms14.7 ms
test_create_multidict_with_items[cs-c]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
+2%
46.3 µs45.3 µs
test_multidict_update_str[cs-py]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
+2%
1 ms1 ms
test_multidict_repr[ci-c]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
-2%
75.9 µs77.3 µs
test_multidict_pop_str[ci-py]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
+2%
927.8 µs912 µs
test_cimultidict_update_istr[c]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
+2%
53.1 µs52.2 µs
test_keys_view_and[cs-c]
tests/test_views_benchmarks.py
CodSpeed Performance Gauge
-2%
57.3 µs58.3 µs
test_multidict_delitem_str[cs-c]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
-2%
63 µs64.1 µs
test_create_multidict_with_dict[ci-c]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
+2%
92.2 µs90.7 µs
test_create_empty_multidict[ci-c]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
-2%
16.9 µs17.2 µs
test_multidict_popitem_str[cs-c]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
-1%
76.8 µs78 µs
test_multidict_update_str[ci-py]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
+1%
1.1 ms1.1 ms
test_create_cimultidict_with_items_istr_with_kwargs[py]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
+1%
1.6 ms1.6 ms
test_multidict_popitem_str[ci-c]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
-1%
131.2 µs133 µs
test_multidict_get_hit[ci-c]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
-1%
91.7 µs92.9 µs
test_items_view_or[ci-c]
tests/test_views_benchmarks.py
CodSpeed Performance Gauge
-1%
152.8 µs154.7 µs
test_keys_view_more[cs-c]
tests/test_views_benchmarks.py
CodSpeed Performance Gauge
+1%
35.3 µs34.9 µs
test_multidict_extend_str[ci-c]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
-1%
11.7 ms11.8 ms
test_values_view_repr[cs-py]
tests/test_views_benchmarks.py
CodSpeed Performance Gauge
-1%
111.1 µs112.5 µs
test_items_view_is_disjoint[cs-c]
tests/test_views_benchmarks.py
CodSpeed Performance Gauge
-1%
60.9 µs61.7 µs
test_items_view_more[ci-c]
tests/test_views_benchmarks.py
CodSpeed Performance Gauge
-1%
65.1 µs65.8 µs
test_cimultidict_pop_istr[py]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
+1%
884.2 µs874.1 µs
test_create_multidict_with_items_with_kwargs[ci-c]
tests/test_multidict_benchmarks.py
CodSpeed Performance Gauge
+1%
187.2 µs185.1 µs

Commits

Click on a commit to change the comparison range
Base
master
00e3803
0%
add test for memory leakage during deletion of value
633e9e8
1 year ago
by Vizonex
-0.1%
[pre-commit.ci] auto fixes from pre-commit.com hooks
8acea81
1 year ago
by pre-commit-ci[bot]
+0.02%
trim ram in multidict_pop.py when testing item deletion so that bougus claims can be prevented. add types-psutil to pre-commit for typechecking the test
22c7d92
1 year ago
by Vizonex
+0.14%
add contribution to timeline
a1fe938
1 year ago
by Vizonex
-0.1%
merge the two functions together so that mypy will accept it.
4ec1158
1 year ago
by Vizonex
-0.01%
typo fix
2bf1cb7
1 year ago
by Vizonex
+0.13%
see if this works...
45f4066
1 year ago
by Vizonex
+0.08%
revert
7843457
1 year ago
by Vizonex
-0.18%
fix crashing and ensure multidicts can actually clear entries
9fa0bfc
1 year ago
by Vizonex
-0.04%
remove malloc-trim there is not need for it here
1059ec8
1 year ago
by Vizonex
-0.02%
_md_refdump is not version compatable so I'll comment it out for now...
9f2903c
1 year ago
by Vizonex
0%
increase timeout so that workflow doesn't cut off
ecb03e7
1 year ago
by Vizonex
0%
increase fault handler timeout so that debug versions can finish in time
fac4442
1 year ago
by Vizonex
0%
revert this was the worng timeout
bd37797
1 year ago
by Vizonex
+0.02%
lessen amount of time memory leak takes to test
4e67d13
1 year ago
by Vizonex
+0.03%
higher amount but print how big it was so we know where it should be capped
c500173
1 year ago
by Vizonex
+0.03%
make sure code-coverage does its job and fix up md_clear so that all values are being cleared
ad1be49
1 year ago
by Vizonex
-0.16%
label that we bugfixed a problem
e374329
1 year ago
by Vizonex
+0.07%
cleanup debug artifacts
e1c5f14
1 year ago
by Vizonex
0%
Apply suggestions from code review
fb25e16
1 year ago
by asvetlov
-0.01%
Apply suggestions from code review
0ccaf30
1 year ago
by asvetlov
+0.04%
Apply suggestions from code review
232806b
1 year ago
by asvetlov
-0.08%
Update multidict/_multilib/hashtable.h
3a08bfc
1 year ago
by asvetlov
+0.05%
Update multidict/_multilib/hashtable.h
53b7bb6
1 year ago
by asvetlov
© 2026 CodSpeed Technology
Home Terms Privacy Docs