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

Add element accessors on Span. #26366

Merged

Conversation

bzbarsky-apple
Copy link
Contributor

This matches std::span and avoids people having to write span.data()[index] and whatnot.

@github-actions
Copy link

github-actions bot commented May 4, 2023

PR #26366: Size comparison from 5ff1818 to cbca484

Increases above 0.2%:

platform target config section 5ff1818 cbca484 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 19522698 19603075 80377 0.4
.debug_str 3100491 3108084 7593 0.2
Increases (1 build for cc32xx)
platform target config section 5ff1818 cbca484 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_abbrev 957005 957087 82 0.0
.debug_info 19522698 19603075 80377 0.4
.debug_line 2666219 2666227 8 0.0
.debug_loclists 1488771 1488792 21 0.0
.debug_str 3100491 3108084 7593 0.2
Full report (1 build for cc32xx)
platform target config section 5ff1818 cbca484 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 604866 604866 0 0.0
(read/write) 204156 204156 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197568 197568 0 0.0
.comment 206 206 0 0.0
.data 1468 1468 0 0.0
.debug_abbrev 957005 957087 82 0.0
.debug_aranges 101104 101104 0 0.0
.debug_frame 341416 341416 0 0.0
.debug_info 19522698 19603075 80377 0.4
.debug_line 2666219 2666227 8 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1488771 1488792 21 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 94291 94291 0 0.0
.debug_str 3100491 3108084 7593 0.2
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 104346 104346 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 482872 482872 0 0.0
.symtab 287120 287120 0 0.0
.text 498396 498396 0 0.0

This matches std::span and avoids people having to write span.data()[index] and
whatnot.
@bzbarsky-apple bzbarsky-apple force-pushed the span-element-accessors branch from cbca484 to 61819f0 Compare May 4, 2023 17:45
@github-actions
Copy link

github-actions bot commented May 4, 2023

PR #26366: Size comparison from de1c64a to 61819f0

Increases above 0.2%:

platform target config section de1c64a 61819f0 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 19522697 19603076 80379 0.4
.debug_str 3100491 3108084 7593 0.2
Increases (1 build for cc32xx)
platform target config section de1c64a 61819f0 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_abbrev 957005 957087 82 0.0
.debug_info 19522697 19603076 80379 0.4
.debug_line 2666219 2666227 8 0.0
.debug_loclists 1488771 1488792 21 0.0
.debug_str 3100491 3108084 7593 0.2
Full report (1 build for cc32xx)
platform target config section de1c64a 61819f0 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 604866 604866 0 0.0
(read/write) 204156 204156 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197568 197568 0 0.0
.comment 206 206 0 0.0
.data 1468 1468 0 0.0
.debug_abbrev 957005 957087 82 0.0
.debug_aranges 101104 101104 0 0.0
.debug_frame 341416 341416 0 0.0
.debug_info 19522697 19603076 80379 0.4
.debug_line 2666219 2666227 8 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1488771 1488792 21 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 94291 94291 0 0.0
.debug_str 3100491 3108084 7593 0.2
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 104346 104346 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 482872 482872 0 0.0
.symtab 287120 287120 0 0.0
.text 498396 498396 0 0.0

@github-actions
Copy link

github-actions bot commented May 4, 2023

PR #26366: Size comparison from de1c64a to 7793216

Increases above 0.2%:

platform target config section de1c64a 7793216 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 19522697 19603113 80416 0.4
.debug_str 3100491 3108084 7593 0.2
Increases (1 build for cc32xx)
platform target config section de1c64a 7793216 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_abbrev 957005 957098 93 0.0
.debug_info 19522697 19603113 80416 0.4
.debug_line 2666219 2666235 16 0.0
.debug_loclists 1488771 1488792 21 0.0
.debug_str 3100491 3108084 7593 0.2
Full report (1 build for cc32xx)
platform target config section de1c64a 7793216 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 604866 604866 0 0.0
(read/write) 204156 204156 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197568 197568 0 0.0
.comment 206 206 0 0.0
.data 1468 1468 0 0.0
.debug_abbrev 957005 957098 93 0.0
.debug_aranges 101104 101104 0 0.0
.debug_frame 341416 341416 0 0.0
.debug_info 19522697 19603113 80416 0.4
.debug_line 2666219 2666235 16 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1488771 1488792 21 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 94291 94291 0 0.0
.debug_str 3100491 3108084 7593 0.2
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 104346 104346 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 482872 482872 0 0.0
.symtab 287120 287120 0 0.0
.text 498396 498396 0 0.0

Copy link
Contributor

@yunhanw-google yunhanw-google left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@bzbarsky-apple bzbarsky-apple merged commit 9556cc3 into project-chip:master May 5, 2023
@bzbarsky-apple bzbarsky-apple deleted the span-element-accessors branch May 5, 2023 00:44
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.

3 participants