jlaitine commented on PR #16030:
URL: https://github.com/apache/nuttx/pull/16030#issuecomment-2750263661

   Changed the implementation to put mutex fast path directly inside 
nxsem_post, nxsem_wait and nxsem_trywait acc. to the suggestions from 
@xiaoxiang781216 and @pussuw .
   
   This actually gives me a huge ( ~25% ) performance boost in my real 
application (PX4 running in CONFIG_BUILD_KERNEL & SMP on RISC-V). The previous 
version gave ~10% boost.
   
   The reason is, that this optimizes all mutex paths from libc to kernel at 
the same take.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to