Closed phuslu closed 4 years ago
a initial file_fast.go added https://github.com/phuslu/log/blob/master/file_fast.go
a internal review finished. will rename FastFileWriter
to FileWriter
in future
UPDATE: benchmark show there's only a little performance improvement. so revert at https://github.com/phuslu/log/commit/2acff7345f917d87c69f6ca1a08f9f8cb8dbadf5 and close this issue
reopen for future investigating
*os.File.Write already has a lock for concurrency call. so we could remove current mutex of
FileWriter
. A original but outdated implementation reverted at b6dc7fe61591143f5ac8100ec865ef8ade52df9d