celestia-node icon indicating copy to clipboard operation
celestia-node copied to clipboard

lint: Add structslop linter to golangci-linter

Open Wondertan opened this issue 3 years ago • 1 comments

The linter(https://github.com/orijtech/structslop) would allow us to do small but on a big code scale noticeable optimizations and would in general teach our devs how fields on the structs should be organized with performance in mind. Also, the feasibility of adding it to the golangci-linter needs to be double-checked.

Wondertan avatar Jul 06 '22 16:07 Wondertan

I think that is fine as long as readability always has priority over the optimal memory layout.

liamsi avatar Jul 11 '22 21:07 liamsi