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

Collapse InetLayerBasis into EndPointBasis #11212

Merged
merged 2 commits into from
Nov 2, 2021

Conversation

kpschoedel
Copy link
Contributor

Problem

For historical reasons, Inet EndPoints had an unnecessarily deep
class hierarchy, originally:

InetLayerBasis
  EndPointBasis
    TCPEndPoint
    IPEndPointBasis
      UDPEndPoint

Previous PRs #11135 and #11145 merged IPEndPointBasis with UDPEndPoint.

Change overview

This change merges InetLayerBasis with EndPointBasis, so that the
EndPoint class hierarchy becomes:

EndPointBasis
  TCPEndPoint
  UDPEndPoint

Testing

CI; no changes to functionality.

#### Problem

For historical reasons, Inet EndPoints had unnecessarily deep
class hierarchy, originally:

    InetLayerBasis
      EndPointBasis
        TCPEndPoint
        IPEndPointBasis
          UDPEndPoint

Previous PRs project-chip#11135 and project-chip#11145 merged `IPEndPointBasis` with `UDPEndPoint`.

#### Change overview

This change merges `InetLayerBasis` with `EndPointBasis`, so that the
EndPoint class hierarchy is now:

    EndPointBasis
      TCPEndPoint
      UDPEndPoint

#### Testing

CI; no changes to functionality.
@github-actions
Copy link

github-actions bot commented Oct 29, 2021

PR #11212: Size comparison from 2c1dceb to c445afc

Increases above 0.2%:

platform target config section 2c1dceb c445afc change % change
p6 lock-app default .bss 66768 67024 256 0.4
Increases (12 builds for efr32, esp32, k32w, p6, qpg)
platform target config section 2c1dceb c445afc change % change
efr32 lighting-app BRD4161A (read/write) 114428 114444 16 0.0
.bss 112676 112692 16 0.0
BRD4161A+rpc (read only) 729008 729024 16 0.0
(read/write) 131652 131668 16 0.0
.bss 129796 129812 16 0.0
.text 729000 729016 16 0.0
lock-app BRD4161A (read only) 682284 682300 16 0.0
(read/write) 112244 112260 16 0.0
.bss 110532 110548 16 0.0
.text 682276 682292 16 0.0
window-app BRD4161A (read/write) 112568 112584 16 0.0
.bss 110852 110868 16 0.0
esp32 all-clusters-app c3devkit (read only) 876522 876526 4 0.0
(read/write) 1308160 1308192 32 0.0
.dram0.bss 58848 58880 32 0.1
.flash.text 876522 876526 4 0.0
m5stack (read/write) 427940 427972 32 0.0
.dram0.bss 61344 61376 32 0.1
k32w lighting-app k32w061+se05x+release (read/write) 700636 700652 16 0.0
.bss 78272 78288 16 0.0
lock-app k32w061+debug (read/write) 592940 592956 16 0.0
.bss 68772 68788 16 0.0
shell k32w061+debug (read/write) 425252 425268 16 0.0
.bss 63256 63272 16 0.0
p6 lock-app default (read/write) 2169488 2169504 16 0.0
.bss 66768 67024 256 0.4
.text 1127752 1127768 16 0.0
qpg lighting-app qpg6100+debug (read only) 490944 490952 8 0.0
.bss 50888 50904 16 0.0
.text 485624 485632 8 0.0
lock-app qpg6100+debug .bss 49840 49856 16 0.0
Decreases (9 builds for linux, p6)
platform target config section 2c1dceb c445afc change % change
linux all-clusters-app debug (read only) 1655017 1654777 -240 -0.0
(read/write) 118720 118688 -32 -0.0
.data.rel.ro 61536 61504 -32 -0.1
.text 1385090 1384898 -192 -0.0
bridge-app debug+rpc (read only) 1283285 1283045 -240 -0.0
(read/write) 84776 84744 -32 -0.0
.data.rel.ro 27368 27336 -32 -0.1
.text 1077333 1077141 -192 -0.0
chip-tool debug (read only) 4268221 4267981 -240 -0.0
(read/write) 122240 122208 -32 -0.0
.data.rel.ro 97568 97536 -32 -0.0
.text 3790453 3790261 -192 -0.0
lighting-app debug+rpc (read only) 1542193 1541953 -240 -0.0
(read/write) 101648 101616 -32 -0.0
.data.rel.ro 54448 54416 -32 -0.1
.text 1281010 1280818 -192 -0.0
ota-provider-app debug (read only) 1240097 1239857 -240 -0.0
(read/write) 67488 67456 -32 -0.0
.data.rel.ro 24616 24584 -32 -0.1
.text 1033122 1032930 -192 -0.0
ota-requestor-app debug (read only) 1303273 1303033 -240 -0.0
(read/write) 76744 76712 -32 -0.0
.data.rel.ro 25528 25496 -32 -0.1
.text 1078002 1077810 -192 -0.0
shell debug (read only) 787153 786897 -256 -0.0
(read/write) 57760 57728 -32 -0.1
.data.rel.ro 36848 36816 -32 -0.1
.text 608098 607890 -208 -0.0
tv-app debug (read only) 1774873 1774617 -256 -0.0
(read/write) 289240 289208 -32 -0.0
.data.rel.ro 58704 58672 -32 -0.1
.text 1478530 1478322 -208 -0.0
p6 lock-app default .heap 964160 963904 -256 -0.0
Full report (37 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 2c1dceb c445afc change % change
efr32 lighting-app BRD4161A (read only) 703072 703072 0 0.0
(read/write) 114428 114444 16 0.0
.bss 112676 112692 16 0.0
.data 1752 1752 0 0.0
.text 703064 703064 0 0.0
BRD4161A+rpc (read only) 729008 729024 16 0.0
(read/write) 131652 131668 16 0.0
.bss 129796 129812 16 0.0
.data 1852 1852 0 0.0
.text 729000 729016 16 0.0
lock-app BRD4161A (read only) 682284 682300 16 0.0
(read/write) 112244 112260 16 0.0
.bss 110532 110548 16 0.0
.data 1712 1712 0 0.0
.text 682276 682292 16 0.0
window-app BRD4161A (read only) 683212 683212 0 0.0
(read/write) 112568 112584 16 0.0
.bss 110852 110868 16 0.0
.data 1716 1716 0 0.0
.text 683204 683204 0 0.0
esp32 all-clusters-app c3devkit (read only) 876522 876526 4 0.0
(read/write) 1308160 1308192 32 0.0
.dram0.bss 58848 58880 32 0.1
.dram0.data 16448 16448 0 0.0
.flash.rodata 199632 199632 0 0.0
.flash.text 876522 876526 4 0.0
.iram0.text 57554 57554 0 0.0
m5stack (read only) 907767 907767 0 0.0
(read/write) 427940 427972 32 0.0
.dram0.bss 61344 61376 32 0.1
.dram0.data 32084 32084 0 0.0
.flash.rodata 208348 208348 0 0.0
.flash.text 907767 907767 0 0.0
.iram0.text 125115 125115 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 700636 700652 16 0.0
.bss 78272 78288 16 0.0
.data 1900 1900 0 0.0
.text 614664 614664 0 0.0
lock-app k32w061+debug (read/write) 592940 592956 16 0.0
.bss 68772 68788 16 0.0
.data 1864 1864 0 0.0
.text 516504 516504 0 0.0
shell k32w061+debug (read/write) 425252 425268 16 0.0
.bss 63256 63272 16 0.0
.data 672 672 0 0.0
.text 359620 359620 0 0.0
linux all-clusters-app debug (read only) 1655017 1654777 -240 -0.0
(read/write) 118720 118688 -32 -0.0
.bss 50960 50960 0 0.0
.data 978 978 0 0.0
.data.rel.ro 61536 61504 -32 -0.1
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 520 520 0 0.0
.rodata 137685 137685 0 0.0
.text 1385090 1384898 -192 -0.0
bridge-app debug+rpc (read only) 1283285 1283045 -240 -0.0
(read/write) 84776 84744 -32 -0.0
.bss 51440 51440 0 0.0
.data 976 976 0 0.0
.data.rel.ro 27368 27336 -32 -0.1
.dynamic 592 592 0 0.0
.got 3952 3952 0 0.0
.init 27 27 0 0.0
.init_array 400 400 0 0.0
.rodata 110660 110660 0 0.0
.text 1077333 1077141 -192 -0.0
chip-tool debug (read only) 4268221 4267981 -240 -0.0
(read/write) 122240 122208 -32 -0.0
.bss 17680 17680 0 0.0
.data 1584 1584 0 0.0
.data.rel.ro 97568 97536 -32 -0.0
.dynamic 592 592 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 424 424 0 0.0
.rodata 214800 214800 0 0.0
.text 3790453 3790261 -192 -0.0
lighting-app debug+rpc (read only) 1542193 1541953 -240 -0.0
(read/write) 101648 101616 -32 -0.0
.bss 40824 40824 0 0.0
.data 1106 1106 0 0.0
.data.rel.ro 54448 54416 -32 -0.1
.dynamic 608 608 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 528 528 0 0.0
.rodata 128753 128753 0 0.0
.text 1281010 1280818 -192 -0.0
ota-provider-app debug (read only) 1240097 1239857 -240 -0.0
(read/write) 67488 67456 -32 -0.0
.bss 37024 37024 0 0.0
.data 752 752 0 0.0
.data.rel.ro 24616 24584 -32 -0.1
.dynamic 592 592 0 0.0
.got 4016 4016 0 0.0
.init 27 27 0 0.0
.init_array 440 440 0 0.0
.rodata 110824 110824 0 0.0
.text 1033122 1032930 -192 -0.0
ota-requestor-app debug (read only) 1303273 1303033 -240 -0.0
(read/write) 76744 76712 -32 -0.0
.bss 45280 45280 0 0.0
.data 816 816 0 0.0
.data.rel.ro 25528 25496 -32 -0.1
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 512 512 0 0.0
.rodata 127456 127456 0 0.0
.text 1078002 1077810 -192 -0.0
shell debug (read only) 787153 786897 -256 -0.0
(read/write) 57760 57728 -32 -0.1
.bss 16168 16168 0 0.0
.data 242 242 0 0.0
.data.rel.ro 36848 36816 -32 -0.1
.dynamic 592 592 0 0.0
.got 3528 3528 0 0.0
.init 27 27 0 0.0
.init_array 336 336 0 0.0
.rodata 77519 77519 0 0.0
.text 608098 607890 -208 -0.0
tv-app debug (read only) 1774873 1774617 -256 -0.0
(read/write) 289240 289208 -32 -0.0
.bss 222864 222864 0 0.0
.data 2032 2032 0 0.0
.data.rel.ro 58704 58672 -32 -0.1
.dynamic 592 592 0 0.0
.got 4408 4408 0 0.0
.init 27 27 0 0.0
.init_array 608 608 0 0.0
.rodata 154104 154104 0 0.0
.text 1478530 1478322 -208 -0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2291080 2291080 0 0.0
.bss 180220 180220 0 0.0
.data 5192 5192 0 0.0
.heap 851032 851032 0 0.0
.text 1253680 1253680 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2275352 2275352 0 0.0
.bss 172420 172420 0 0.0
.data 5568 5568 0 0.0
.heap 858456 858456 0 0.0
.text 1237952 1237952 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2253072 2253072 0 0.0
.bss 171324 171324 0 0.0
.data 5552 5552 0 0.0
.heap 859568 859568 0 0.0
.text 1215672 1215672 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139744 1139744 0 0.0
.bss 11752 11752 0 0.0
.data 4368 4368 0 0.0
.heap 1020328 1020328 0 0.0
.text 103128 103128 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2048976 2048976 0 0.0
.bss 156208 156208 0 0.0
.data 4968 4968 0 0.0
.heap 875272 875272 0 0.0
.text 1011576 1011576 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 862847 862847 0 0.0
bss 111732 111732 0 0.0
rodata 97432 97432 0 0.0
text 578072 578072 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 823707 823707 0 0.0
bss 107972 107972 0 0.0
rodata 88212 88212 0 0.0
text 551248 551248 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 787870 787870 0 0.0
bss 113104 113104 0 0.0
rodata 92672 92672 0 0.0
text 507540 507540 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 839555 839555 0 0.0
bss 110768 110768 0 0.0
rodata 93788 93788 0 0.0
text 559556 559556 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 764850 764850 0 0.0
bss 112176 112176 0 0.0
rodata 89092 89092 0 0.0
text 489116 489116 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497323 497323 0 0.0
bss 51824 51824 0 0.0
rodata 45776 45776 0 0.0
text 339436 339436 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 844223 844223 0 0.0
bss 110904 110904 0 0.0
rodata 95032 95032 0 0.0
text 562768 562768 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 839543 839543 0 0.0
bss 110800 110800 0 0.0
rodata 93808 93808 0 0.0
text 559400 559400 0 0.0
shell nrf52840dk_nrf52840 (read/write) 776435 776435 0 0.0
bss 109072 109072 0 0.0
rodata 72536 72536 0 0.0
text 520236 520236 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 691490 691490 0 0.0
bss 110056 110056 0 0.0
rodata 67180 67180 0 0.0
text 440848 440848 0 0.0
p6 lock-app default (read/write) 2169488 2169504 16 0.0
.bss 66768 67024 256 0.4
.data 2416 2416 0 0.0
.heap 964160 963904 -256 -0.0
.text 1127752 1127768 16 0.0
qpg lighting-app qpg6100+debug (read only) 490944 490952 8 0.0
(read/write) 114144 114144 0 0.0
.bss 50888 50904 16 0.0
.data 1000 1000 0 0.0
.text 485624 485632 8 0.0
lock-app qpg6100+debug (read only) 467300 467300 0 0.0
(read/write) 114140 114140 0 0.0
.bss 49840 49856 16 0.0
.data 956 956 0 0.0
.text 461980 461980 0 0.0
persistent-storage-app qpg6100+debug (read only) 155236 155236 0 0.0
(read/write) 114140 114140 0 0.0
.bss 27752 27752 0 0.0
.data 372 372 0 0.0
.text 149916 149916 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 664562 664562 0 0.0
bss 69544 69544 0 0.0
noinit 33216 33216 0 0.0
text 458596 458596 0 0.0

@github-actions
Copy link

github-actions bot commented Oct 29, 2021

PR #11212: Size comparison from 2c1dceb to 86c71f4

Increases above 0.2%:

platform target config section 2c1dceb 86c71f4 change % change
linux all-clusters-app debug (read only) 1655017 1666233 11216 0.7
.text 1385090 1397074 11984 0.9
chip-tool debug (read only) 4268221 4288245 20024 0.5
(read/write) 122240 122720 480 0.4
.data.rel.ro 97568 98048 480 0.5
.rodata 214800 216304 1504 0.7
.text 3790453 3807845 17392 0.5
qpg persistent-storage-app qpg6100+debug (read only) 155236 155820 584 0.4
.text 149916 150500 584 0.4
Increases (13 builds for esp32, k32w, linux, mbed, nrfconnect, p6, qpg)
platform target config section 2c1dceb 86c71f4 change % change
esp32 all-clusters-app c3devkit (read only) 876522 877674 1152 0.1
.flash.text 876522 877674 1152 0.1
m5stack (read only) 907767 908935 1168 0.1
.flash.text 907767 908935 1168 0.1
k32w shell k32w061+debug .bss 63256 63280 24 0.0
linux all-clusters-app debug (read only) 1655017 1666233 11216 0.7
.text 1385090 1397074 11984 0.9
chip-tool debug (read only) 4268221 4288245 20024 0.5
(read/write) 122240 122720 480 0.4
.data.rel.ro 97568 98048 480 0.5
.rodata 214800 216304 1504 0.7
.text 3790453 3807845 17392 0.5
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2291080 2291992 912 0.0
.heap 851032 851584 552 0.1
.text 1253680 1254592 912 0.1
lighting-app CY8CPROTO_062_4343W+release .heap 858456 859008 552 0.1
lock-app CY8CPROTO_062_4343W+release .heap 859568 860120 552 0.1
shell CY8CPROTO_062_4343W+release .bss 156208 156232 24 0.0
nrfconnect shell nrf52840dk_nrf52840 bss 109072 109096 24 0.0
nrf5340dk_nrf5340_cpuapp bss 110056 110080 24 0.0
p6 lock-app default .heap 964160 964712 552 0.1
qpg persistent-storage-app qpg6100+debug (read only) 155236 155820 584 0.4
.text 149916 150500 584 0.4
Decreases (33 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 2c1dceb 86c71f4 change % change
efr32 lighting-app BRD4161A (read only) 703072 701348 -1724 -0.2
(read/write) 114428 113876 -552 -0.5
.bss 112676 112124 -552 -0.5
.text 703064 701340 -1724 -0.2
BRD4161A+rpc (read only) 729008 727300 -1708 -0.2
(read/write) 131652 131096 -556 -0.4
.bss 129796 129244 -552 -0.4
.text 729000 727292 -1708 -0.2
lock-app BRD4161A (read only) 682284 680576 -1708 -0.3
(read/write) 112244 111692 -552 -0.5
.bss 110532 109980 -552 -0.5
.text 682276 680568 -1708 -0.3
window-app BRD4161A (read only) 683212 681488 -1724 -0.3
(read/write) 112568 112020 -548 -0.5
.bss 110852 110300 -552 -0.5
.text 683204 681480 -1724 -0.3
esp32 all-clusters-app c3devkit (read/write) 1308160 1307072 -1088 -0.1
.dram0.bss 58848 58296 -552 -0.9
.flash.rodata 199632 199088 -544 -0.3
m5stack (read/write) 427940 426852 -1088 -0.3
.dram0.bss 61344 60792 -552 -0.9
.flash.rodata 208348 207812 -536 -0.3
k32w lighting-app k32w061+se05x+release (read/write) 700636 699128 -1508 -0.2
.bss 78272 77720 -552 -0.7
.text 614664 613708 -956 -0.2
lock-app k32w061+debug (read/write) 592940 591432 -1508 -0.3
.bss 68772 68220 -552 -0.8
.text 516504 515548 -956 -0.2
shell k32w061+debug (read/write) 425252 424988 -264 -0.1
.text 359620 359332 -288 -0.1
linux all-clusters-app debug (read/write) 118720 118048 -672 -0.6
.bss 50960 50320 -640 -1.3
.data.rel.ro 61536 61504 -32 -0.1
.rodata 137685 137013 -672 -0.5
bridge-app debug+rpc (read only) 1283285 1281717 -1568 -0.1
(read/write) 84776 84104 -672 -0.8
.bss 51440 50800 -640 -1.2
.data.rel.ro 27368 27336 -32 -0.1
.rodata 110660 110020 -640 -0.6
.text 1077333 1076501 -832 -0.1
lighting-app debug+rpc (read only) 1542193 1540625 -1568 -0.1
(read/write) 101648 100976 -672 -0.7
.bss 40824 40184 -640 -1.6
.data.rel.ro 54448 54416 -32 -0.1
.rodata 128753 128113 -640 -0.5
.text 1281010 1280178 -832 -0.1
ota-provider-app debug (read only) 1240097 1238793 -1304 -0.1
(read/write) 67488 67072 -416 -0.6
.bss 37024 36640 -384 -1.0
.data.rel.ro 24616 24584 -32 -0.1
.rodata 110824 110408 -416 -0.4
.text 1033122 1032306 -816 -0.1
ota-requestor-app debug (read only) 1303273 1301793 -1480 -0.1
(read/write) 76744 76328 -416 -0.5
.bss 45280 44896 -384 -0.8
.data.rel.ro 25528 25496 -32 -0.1
.rodata 127456 127072 -384 -0.3
.text 1078002 1076978 -1024 -0.1
shell debug (read only) 787153 785905 -1248 -0.2
(read/write) 57760 57632 -128 -0.2
.bss 16168 16072 -96 -0.6
.data.rel.ro 36848 36816 -32 -0.1
.rodata 77519 77423 -96 -0.1
.text 608098 606994 -1104 -0.2
tv-app debug (read only) 1774873 1773081 -1792 -0.1
(read/write) 289240 288568 -672 -0.2
.bss 222864 222224 -640 -0.3
.data.rel.ro 58704 58672 -32 -0.1
.rodata 154104 153464 -640 -0.4
.text 1478530 1477474 -1056 -0.1
mbed all-clusters-app CY8CPROTO_062_4343W+release .bss 180220 179668 -552 -0.3
lighting-app CY8CPROTO_062_4343W+release (read/write) 2275352 2274336 -1016 -0.0
.bss 172420 171868 -552 -0.3
.text 1237952 1236936 -1016 -0.1
lock-app CY8CPROTO_062_4343W+release (read/write) 2253072 2252056 -1016 -0.0
.bss 171324 170772 -552 -0.3
.text 1215672 1214656 -1016 -0.1
shell CY8CPROTO_062_4343W+release (read/write) 2048976 2048656 -320 -0.0
.heap 875272 875248 -24 -0.0
.text 1011576 1011256 -320 -0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 862847 861263 -1584 -0.2
bss 111732 111180 -552 -0.5
rodata 97432 96856 -576 -0.6
text 578072 577612 -460 -0.1
nrf52840dk_nrf52840+rpc (read/write) 823707 822091 -1616 -0.2
bss 107972 107424 -548 -0.5
rodata 88212 87636 -576 -0.7
text 551248 550784 -464 -0.1
nrf5340dk_nrf5340_cpuapp (read/write) 787870 786306 -1564 -0.2
bss 113104 112556 -548 -0.5
rodata 92672 92100 -572 -0.6
text 507540 507080 -460 -0.1
lock-app nrf52840dk_nrf52840 (read/write) 839555 837971 -1584 -0.2
bss 110768 110216 -552 -0.5
rodata 93788 93212 -576 -0.6
text 559556 559092 -464 -0.1
nrf5340dk_nrf5340_cpuapp (read/write) 764850 763266 -1584 -0.2
bss 112176 111628 -548 -0.5
rodata 89092 88516 -576 -0.6
text 489116 488652 -464 -0.1
pump-app nrf52840dk_nrf52840 (read/write) 844223 842643 -1580 -0.2
bss 110904 110352 -552 -0.5
rodata 95032 94460 -572 -0.6
text 562768 562300 -468 -0.1
pump-controller-app nrf52840dk_nrf52840 (read/write) 839543 837947 -1596 -0.2
bss 110800 110252 -548 -0.5
rodata 93808 93236 -572 -0.6
text 559400 558932 -468 -0.1
shell nrf52840dk_nrf52840 (read/write) 776435 776179 -256 -0.0
text 520236 519936 -300 -0.1
nrf5340dk_nrf5340_cpuapp (read/write) 691490 691202 -288 -0.0
text 440848 440548 -300 -0.1
p6 lock-app default (read/write) 2169488 2167872 -1616 -0.1
.bss 66768 66216 -552 -0.8
.text 1127752 1126136 -1616 -0.1
qpg lighting-app qpg6100+debug (read only) 490944 490500 -444 -0.1
.bss 50888 50336 -552 -1.1
.text 485624 485180 -444 -0.1
lock-app qpg6100+debug (read only) 467300 466840 -460 -0.1
.bss 49840 49288 -552 -1.1
.text 461980 461520 -460 -0.1
telink lighting-app tlsr9518adk80d (read/write) 664562 662890 -1672 -0.3
bss 69544 68992 -552 -0.8
text 458596 458036 -560 -0.1
Full report (37 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 2c1dceb 86c71f4 change % change
efr32 lighting-app BRD4161A (read only) 703072 701348 -1724 -0.2
(read/write) 114428 113876 -552 -0.5
.bss 112676 112124 -552 -0.5
.data 1752 1752 0 0.0
.text 703064 701340 -1724 -0.2
BRD4161A+rpc (read only) 729008 727300 -1708 -0.2
(read/write) 131652 131096 -556 -0.4
.bss 129796 129244 -552 -0.4
.data 1852 1852 0 0.0
.text 729000 727292 -1708 -0.2
lock-app BRD4161A (read only) 682284 680576 -1708 -0.3
(read/write) 112244 111692 -552 -0.5
.bss 110532 109980 -552 -0.5
.data 1712 1712 0 0.0
.text 682276 680568 -1708 -0.3
window-app BRD4161A (read only) 683212 681488 -1724 -0.3
(read/write) 112568 112020 -548 -0.5
.bss 110852 110300 -552 -0.5
.data 1716 1716 0 0.0
.text 683204 681480 -1724 -0.3
esp32 all-clusters-app c3devkit (read only) 876522 877674 1152 0.1
(read/write) 1308160 1307072 -1088 -0.1
.dram0.bss 58848 58296 -552 -0.9
.dram0.data 16448 16448 0 0.0
.flash.rodata 199632 199088 -544 -0.3
.flash.text 876522 877674 1152 0.1
.iram0.text 57554 57554 0 0.0
m5stack (read only) 907767 908935 1168 0.1
(read/write) 427940 426852 -1088 -0.3
.dram0.bss 61344 60792 -552 -0.9
.dram0.data 32084 32084 0 0.0
.flash.rodata 208348 207812 -536 -0.3
.flash.text 907767 908935 1168 0.1
.iram0.text 125115 125115 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 700636 699128 -1508 -0.2
.bss 78272 77720 -552 -0.7
.data 1900 1900 0 0.0
.text 614664 613708 -956 -0.2
lock-app k32w061+debug (read/write) 592940 591432 -1508 -0.3
.bss 68772 68220 -552 -0.8
.data 1864 1864 0 0.0
.text 516504 515548 -956 -0.2
shell k32w061+debug (read/write) 425252 424988 -264 -0.1
.bss 63256 63280 24 0.0
.data 672 672 0 0.0
.text 359620 359332 -288 -0.1
linux all-clusters-app debug (read only) 1655017 1666233 11216 0.7
(read/write) 118720 118048 -672 -0.6
.bss 50960 50320 -640 -1.3
.data 978 978 0 0.0
.data.rel.ro 61536 61504 -32 -0.1
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 520 520 0 0.0
.rodata 137685 137013 -672 -0.5
.text 1385090 1397074 11984 0.9
bridge-app debug+rpc (read only) 1283285 1281717 -1568 -0.1
(read/write) 84776 84104 -672 -0.8
.bss 51440 50800 -640 -1.2
.data 976 976 0 0.0
.data.rel.ro 27368 27336 -32 -0.1
.dynamic 592 592 0 0.0
.got 3952 3952 0 0.0
.init 27 27 0 0.0
.init_array 400 400 0 0.0
.rodata 110660 110020 -640 -0.6
.text 1077333 1076501 -832 -0.1
chip-tool debug (read only) 4268221 4288245 20024 0.5
(read/write) 122240 122720 480 0.4
.bss 17680 17680 0 0.0
.data 1584 1584 0 0.0
.data.rel.ro 97568 98048 480 0.5
.dynamic 592 592 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 424 424 0 0.0
.rodata 214800 216304 1504 0.7
.text 3790453 3807845 17392 0.5
lighting-app debug+rpc (read only) 1542193 1540625 -1568 -0.1
(read/write) 101648 100976 -672 -0.7
.bss 40824 40184 -640 -1.6
.data 1106 1106 0 0.0
.data.rel.ro 54448 54416 -32 -0.1
.dynamic 608 608 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 528 528 0 0.0
.rodata 128753 128113 -640 -0.5
.text 1281010 1280178 -832 -0.1
ota-provider-app debug (read only) 1240097 1238793 -1304 -0.1
(read/write) 67488 67072 -416 -0.6
.bss 37024 36640 -384 -1.0
.data 752 752 0 0.0
.data.rel.ro 24616 24584 -32 -0.1
.dynamic 592 592 0 0.0
.got 4016 4016 0 0.0
.init 27 27 0 0.0
.init_array 440 440 0 0.0
.rodata 110824 110408 -416 -0.4
.text 1033122 1032306 -816 -0.1
ota-requestor-app debug (read only) 1303273 1301793 -1480 -0.1
(read/write) 76744 76328 -416 -0.5
.bss 45280 44896 -384 -0.8
.data 816 816 0 0.0
.data.rel.ro 25528 25496 -32 -0.1
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 512 512 0 0.0
.rodata 127456 127072 -384 -0.3
.text 1078002 1076978 -1024 -0.1
shell debug (read only) 787153 785905 -1248 -0.2
(read/write) 57760 57632 -128 -0.2
.bss 16168 16072 -96 -0.6
.data 242 242 0 0.0
.data.rel.ro 36848 36816 -32 -0.1
.dynamic 592 592 0 0.0
.got 3528 3528 0 0.0
.init 27 27 0 0.0
.init_array 336 336 0 0.0
.rodata 77519 77423 -96 -0.1
.text 608098 606994 -1104 -0.2
tv-app debug (read only) 1774873 1773081 -1792 -0.1
(read/write) 289240 288568 -672 -0.2
.bss 222864 222224 -640 -0.3
.data 2032 2032 0 0.0
.data.rel.ro 58704 58672 -32 -0.1
.dynamic 592 592 0 0.0
.got 4408 4408 0 0.0
.init 27 27 0 0.0
.init_array 608 608 0 0.0
.rodata 154104 153464 -640 -0.4
.text 1478530 1477474 -1056 -0.1
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2291080 2291992 912 0.0
.bss 180220 179668 -552 -0.3
.data 5192 5192 0 0.0
.heap 851032 851584 552 0.1
.text 1253680 1254592 912 0.1
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2275352 2274336 -1016 -0.0
.bss 172420 171868 -552 -0.3
.data 5568 5568 0 0.0
.heap 858456 859008 552 0.1
.text 1237952 1236936 -1016 -0.1
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2253072 2252056 -1016 -0.0
.bss 171324 170772 -552 -0.3
.data 5552 5552 0 0.0
.heap 859568 860120 552 0.1
.text 1215672 1214656 -1016 -0.1
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139744 1139744 0 0.0
.bss 11752 11752 0 0.0
.data 4368 4368 0 0.0
.heap 1020328 1020328 0 0.0
.text 103128 103128 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2048976 2048656 -320 -0.0
.bss 156208 156232 24 0.0
.data 4968 4968 0 0.0
.heap 875272 875248 -24 -0.0
.text 1011576 1011256 -320 -0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 862847 861263 -1584 -0.2
bss 111732 111180 -552 -0.5
rodata 97432 96856 -576 -0.6
text 578072 577612 -460 -0.1
nrf52840dk_nrf52840+rpc (read/write) 823707 822091 -1616 -0.2
bss 107972 107424 -548 -0.5
rodata 88212 87636 -576 -0.7
text 551248 550784 -464 -0.1
nrf5340dk_nrf5340_cpuapp (read/write) 787870 786306 -1564 -0.2
bss 113104 112556 -548 -0.5
rodata 92672 92100 -572 -0.6
text 507540 507080 -460 -0.1
lock-app nrf52840dk_nrf52840 (read/write) 839555 837971 -1584 -0.2
bss 110768 110216 -552 -0.5
rodata 93788 93212 -576 -0.6
text 559556 559092 -464 -0.1
nrf5340dk_nrf5340_cpuapp (read/write) 764850 763266 -1584 -0.2
bss 112176 111628 -548 -0.5
rodata 89092 88516 -576 -0.6
text 489116 488652 -464 -0.1
pigweed-app nrf52840dk_nrf52840 (read/write) 497323 497323 0 0.0
bss 51824 51824 0 0.0
rodata 45776 45776 0 0.0
text 339436 339436 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 844223 842643 -1580 -0.2
bss 110904 110352 -552 -0.5
rodata 95032 94460 -572 -0.6
text 562768 562300 -468 -0.1
pump-controller-app nrf52840dk_nrf52840 (read/write) 839543 837947 -1596 -0.2
bss 110800 110252 -548 -0.5
rodata 93808 93236 -572 -0.6
text 559400 558932 -468 -0.1
shell nrf52840dk_nrf52840 (read/write) 776435 776179 -256 -0.0
bss 109072 109096 24 0.0
rodata 72536 72536 0 0.0
text 520236 519936 -300 -0.1
nrf5340dk_nrf5340_cpuapp (read/write) 691490 691202 -288 -0.0
bss 110056 110080 24 0.0
rodata 67180 67180 0 0.0
text 440848 440548 -300 -0.1
p6 lock-app default (read/write) 2169488 2167872 -1616 -0.1
.bss 66768 66216 -552 -0.8
.data 2416 2416 0 0.0
.heap 964160 964712 552 0.1
.text 1127752 1126136 -1616 -0.1
qpg lighting-app qpg6100+debug (read only) 490944 490500 -444 -0.1
(read/write) 114144 114144 0 0.0
.bss 50888 50336 -552 -1.1
.data 1000 1000 0 0.0
.text 485624 485180 -444 -0.1
lock-app qpg6100+debug (read only) 467300 466840 -460 -0.1
(read/write) 114140 114140 0 0.0
.bss 49840 49288 -552 -1.1
.data 956 956 0 0.0
.text 461980 461520 -460 -0.1
persistent-storage-app qpg6100+debug (read only) 155236 155820 584 0.4
(read/write) 114140 114140 0 0.0
.bss 27752 27752 0 0.0
.data 372 372 0 0.0
.text 149916 150500 584 0.4
telink lighting-app tlsr9518adk80d (read/write) 664562 662890 -1672 -0.3
bss 69544 68992 -552 -0.8
noinit 33216 33216 0 0.0
text 458596 458036 -560 -0.1

@Damian-Nordic Damian-Nordic merged commit 05200d6 into project-chip:master Nov 2, 2021
@kpschoedel kpschoedel deleted the x7715-inetlayerbasis branch November 2, 2021 16:06
PSONALl pushed a commit to PSONALl/connectedhomeip that referenced this pull request Dec 3, 2021
* Collapse InetLayerBasis into EndPointBasis

#### Problem

For historical reasons, Inet EndPoints had unnecessarily deep
class hierarchy, originally:

    InetLayerBasis
      EndPointBasis
        TCPEndPoint
        IPEndPointBasis
          UDPEndPoint

Previous PRs project-chip#11135 and project-chip#11145 merged `IPEndPointBasis` with `UDPEndPoint`.

#### Change overview

This change merges `InetLayerBasis` with `EndPointBasis`, so that the
EndPoint class hierarchy is now:

    EndPointBasis
      TCPEndPoint
      UDPEndPoint

#### Testing

CI; no changes to functionality.

* reorder members to avoid structure size increase on some platforms
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.

5 participants