scalalang2 / golang-fifo

Modern efficient cache design with simple FIFO queue only in Golang
MIT License
142 stars 7 forks source link

Enquiry : reasoning behind using a single mutex in sieve.go #38

Closed SHIVAYspec closed 3 months ago

SHIVAYspec commented 3 months ago

Just an enquiry What is the reason for using a single Mutex in sieve.go? Did you consider dividing it into shards and keeping one Mutex per shard? It seems like it would decrease contention on the Mutex if the system has multiple processors. Thanks for your time in advance.

scalalang2 commented 3 months ago

I had opened an issue related with your inquiry. #24

I won't be able to work on it right now, but I plan to develop it after September. If you want to take this issue and contribute, then I would appreciate it 😄