nuttx icon indicating copy to clipboard operation
nuttx copied to clipboard

libs/libc/queue: inline queue list to improve performance

Open anchao opened this issue 3 years ago • 1 comments

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

anchao avatar Aug 03 '22 05:08 anchao

I need some more time on this. I hope to finish the review till EOW.

pkarashchenko avatar Aug 03 '22 16:08 pkarashchenko