Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend PoolInterface to heap pools #12997

Merged
merged 1 commit into from
Dec 15, 2021

Conversation

kpschoedel
Copy link
Contributor

Problem

PR #11834 added PoolInterface, a useful helper for passing object
pools, but it only supports BitMapObjectPool.

Change overview

Generalize PoolInterface to handle both static and heap pools.

Testing

Added a unit test.

#### Problem

PR project-chip#11834 added `PoolInterface`, a useful helper for passing object
pools, but it only supports `BitMapObjectPool`.

#### Change overview

Generalize `PoolInterface` to handle both static and heap pools.

#### Testing

Added a unit test.
@github-actions
Copy link

github-actions bot commented Dec 14, 2021

PR #12997: Size comparison from f40044e to f5a6f48

Increases (2 builds for linux)
platform target config section f40044e f5a6f48 change % change
linux chip-tool-ipv6only arm64 (read only) 6880588 6880876 288 0.0
.text 5832148 5832436 288 0.0
thermostat-no-ble arm64 (read only) 1998508 1998732 224 0.0
.text 1659328 1659552 224 0.0
Full report (32 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section f40044e f5a6f48 change % change
efr32 lighting-app BRD4161A (read only) 833464 833464 0 0.0
(read/write) 128608 128608 0 0.0
.bss 126744 126744 0 0.0
.data 1864 1864 0 0.0
.text 833456 833456 0 0.0
BRD4161A+rpc (read only) 821052 821052 0 0.0
(read/write) 145284 145284 0 0.0
.bss 143320 143320 0 0.0
.data 1964 1964 0 0.0
.text 821044 821044 0 0.0
window-app BRD4161A (read only) 810688 810688 0 0.0
(read/write) 127560 127560 0 0.0
.bss 125728 125728 0 0.0
.data 1828 1828 0 0.0
.text 810680 810680 0 0.0
esp32 all-clusters-app c3devkit (read only) 876720 876720 0 0.0
(read/write) 1313266 1313266 0 0.0
.dram0.bss 71056 71056 0 0.0
.dram0.data 14220 14220 0 0.0
.flash.rodata 174960 174960 0 0.0
.flash.text 876720 876720 0 0.0
.iram0.text 62076 62076 0 0.0
m5stack (read only) 964659 964659 0 0.0
(read/write) 454564 454564 0 0.0
.dram0.bss 77528 77528 0 0.0
.dram0.data 34048 34048 0 0.0
.flash.rodata 211200 211200 0 0.0
.flash.text 959275 959275 0 0.0
.iram0.text 123451 123451 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 687400 687400 0 0.0
.bss 79328 79328 0 0.0
.data 1896 1896 0 0.0
.text 600376 600376 0 0.0
lock-app k32w061+debug (read/write) 637324 637324 0 0.0
.bss 77480 77480 0 0.0
.data 1856 1856 0 0.0
.text 552188 552188 0 0.0
shell k32w061+debug (read/write) 642728 642728 0 0.0
.bss 79788 79788 0 0.0
.data 1836 1836 0 0.0
.text 555304 555304 0 0.0
linux chip-tool-ipv6only arm64 (read only) 6880588 6880876 288 0.0
(read/write) 323585 323585 0 0.0
.bss 56001 56001 0 0.0
.data 1192 1192 0 0.0
.data.rel.ro 208880 208880 0 0.0
.dynamic 560 560 0 0.0
.got 53776 53776 0 0.0
.init 24 24 0 0.0
.init_array 176 176 0 0.0
.rodata 366140 366140 0 0.0
.text 5832148 5832436 288 0.0
thermostat-no-ble arm64 (read only) 1998508 1998732 224 0.0
(read/write) 145073 145073 0 0.0
.bss 65601 65601 0 0.0
.data 832 832 0 0.0
.data.rel.ro 71912 71912 0 0.0
.dynamic 560 560 0 0.0
.got 3840 3840 0 0.0
.init 24 24 0 0.0
.init_array 280 280 0 0.0
.rodata 127852 127852 0 0.0
.text 1659328 1659552 224 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2334712 2334712 0 0.0
.bss 190316 190316 0 0.0
.data 5240 5240 0 0.0
.heap 840888 840888 0 0.0
.text 1297288 1297288 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2330304 2330304 0 0.0
.bss 182176 182176 0 0.0
.data 5536 5536 0 0.0
.heap 848736 848736 0 0.0
.text 1292904 1292904 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2303416 2303416 0 0.0
.bss 181216 181216 0 0.0
.data 5520 5520 0 0.0
.heap 849712 849712 0 0.0
.text 1266016 1266016 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1140008 1140008 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.heap 1020320 1020320 0 0.0
.text 103392 103392 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2054328 2054328 0 0.0
.bss 156980 156980 0 0.0
.data 4864 4864 0 0.0
.heap 874600 874600 0 0.0
.text 1016928 1016928 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 922887 922887 0 0.0
bss 119832 119832 0 0.0
rodata 103544 103544 0 0.0
text 623928 623928 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 885943 885943 0 0.0
bss 116180 116180 0 0.0
rodata 94840 94840 0 0.0
text 598668 598668 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 848902 848902 0 0.0
bss 121208 121208 0 0.0
rodata 98800 98800 0 0.0
text 554368 554368 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 897675 897675 0 0.0
bss 119012 119012 0 0.0
rodata 99660 99660 0 0.0
text 603572 603572 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 823934 823934 0 0.0
bss 120420 120420 0 0.0
rodata 94952 94952 0 0.0
text 534100 534100 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497447 497447 0 0.0
bss 51820 51820 0 0.0
rodata 45852 45852 0 0.0
text 339488 339488 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 902615 902615 0 0.0
bss 118924 118924 0 0.0
rodata 101016 101016 0 0.0
text 607172 607172 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 895823 895823 0 0.0
bss 118800 118800 0 0.0
rodata 99152 99152 0 0.0
text 602372 602372 0 0.0
shell nrf52840dk_nrf52840 (read/write) 782767 782767 0 0.0
bss 109624 109624 0 0.0
rodata 74396 74396 0 0.0
text 524232 524232 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 697838 697838 0 0.0
bss 110604 110604 0 0.0
rodata 69040 69040 0 0.0
text 444868 444868 0 0.0
p6 all-clusters-app default (read/write) 2387432 2387432 0 0.0
.bss 118516 118516 0 0.0
.data 2528 2528 0 0.0
.heap 912296 912296 0 0.0
.text 1345696 1345696 0 0.0
light-app default (read/write) 2327792 2327792 0 0.0
.bss 107432 107432 0 0.0
.data 2368 2368 0 0.0
.heap 923544 923544 0 0.0
.text 1286056 1286056 0 0.0
lock-app default (read/write) 2303856 2303856 0 0.0
.bss 106312 106312 0 0.0
.data 2336 2336 0 0.0
.heap 924696 924696 0 0.0
.text 1262120 1262120 0 0.0
qpg lighting-app qpg6105+debug (read only) 532120 532120 0 0.0
(read/write) 146940 146940 0 0.0
.bss 88080 88080 0 0.0
.data 992 992 0 0.0
.text 526800 526800 0 0.0
lock-app qpg6105+debug (read only) 506464 506464 0 0.0
(read/write) 146936 146936 0 0.0
.bss 87216 87216 0 0.0
.data 948 948 0 0.0
.text 501144 501144 0 0.0
persistent-storage-app qpg6105+debug (read only) 106448 106448 0 0.0
(read/write) 146938 146938 0 0.0
.bss 36146 36146 0 0.0
.data 288 288 0 0.0
.text 101128 101128 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 832126 832126 0 0.0
bss 88320 88320 0 0.0
noinit 37160 37160 0 0.0
text 579914 579914 0 0.0

@bzbarsky-apple bzbarsky-apple merged commit 4e3d0b1 into project-chip:master Dec 15, 2021
@kpschoedel kpschoedel deleted the x7715-pool-interface branch December 15, 2021 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants