Closed cristaloleg closed 3 months ago
It would be nice to have the same change in the node share
pkg. Currently, we duplicate the Namespace type there and implement it as a byte slice rather than a struct.
Thanks everyone, will address comments tomorrow 🫡
Overview
While reading and checking structures from https://celestiaorg.github.io/celestia-app/specs/data_structures.html I noticed that we compare namespaces not optimal enough. Every equal or compare-like operation allocates new slice with data that can be already compared directly.