nuttx
nuttx copied to clipboard
libs/libc/queue: inline queue list to improve performance
Summary
libs/libc/queue: inline queue list to improve performance
add a config CONFIG_LIBC_INLINE_QUEUE to inline the queue list
Test Board:
lm3s6965-ek:qemu-flat
Code Size:
Original:
$ size nuttx
text data bss dec hex filename
224062 344 15020 239426 3a742 nuttx
Enable CONFIG_LIBC_INLINE_QUEUE:
$ size nuttx
text data bss dec hex filename
224922 344 15020 240286 3aa9e nuttx
Performance:
Cycle Count(sem_post -> sem_wait):
Original:
223
Enable CONFIG_LIBC_INLINE_QUEUE:
217
Signed-off-by: chao.an [email protected]
Impact
N/A
Testing
lm3s6965-ek:qemu-flat
I need some more time on this. I hope to finish the review till EOW.