cihub / seelog

Seelog is a native Go logging library that provides flexible asynchronous dispatching, filtering, and formatting.
BSD 3-Clause "New" or "Revised" License
1.64k stars 244 forks source link

Why is the pkgOperationsMutex a sync.Mutex instead of a sync.RWMutex? #180

Open tanght1994 opened 2 years ago

tanght1994 commented 2 years ago

The var pkgOperationsMutex in the log.go, Use sync.RWMutex to replace the sync.Mutex can Improve the performance 1 .

tanght1994 commented 2 years ago

Can i push a request to fix that? I'm using github for the first time, so I'm afraid to commit request.