Closed ksatchit closed 4 years ago
cc: @payes @vishnuitta
Hi, if I got it correctly, we're talking about replacing: defer mu.Unlock()
to just calling mu.Unlock()
in the end of the function?
@klebervirgilio you are correct. This has to be handled optimally
Got it! Thanks @umamukkara
hot paths
? @klebervirgilio .. thanks for showing interest in this Hot paths are related to IO paths. You can start from ReadAt, WriteAt functions in controller/control.go and follow the path to know IO path in controller side, and, similarly Handle() in rpc/server.go for replica side IO handling.
@vishnuitta @klebervirgilio If it's still up for grab. I would like to work on it?
Hi @khushbuparakh , Thanks for showing interest in this. Please go ahead and let us know if you need any help.
Happy Hacktoberfest :)
There seems to be heavy overhead with usage of 'defer unlocks' in go code. This link says so: https://medium.com/i0exception/runtime-overhead-of-using-defer-in-go-7140d5c40e32
This issue is to convert 'defer unlocks' to just unlocks at all the required exit places in hot paths of longhorn.