GitHub user gfphoenix78 added a comment to the discussion: [Ideas] 
关于提升Cloudberry高并发查询锁优化的建议

Interesting! The patch adds a new implementation of spin lock, i.e. 
`__sync_lock_test_and_set` vs `__atomic_compare_exchange_n`.
`__sync_lock_test_and_set` performs better than `__atomic_compare_exchange_n` 
with low concurrency. But `__atomic_compare_exchange_n` behaves much better 
than `__sync_lock_test_and_set` when concurrency grows.

GitHub link: 
https://github.com/apache/cloudberry/discussions/1427#discussioncomment-14934265

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to