I was looking into how to store large amount of addreses for example to adding atributes to different token holders.
As far as i know, most people use mapping, i was researching how that works but the only information i could find was "You can think of mappings as hash tables" so i assume the complexity will be O(1) avg and worst case O(n)
So taking into consideration that will be necesary to check that attibutes every time an address sold some tokens and the order of the elements doesnt matter, the right way will be using mapping?
Also, some recomendations to read about how storing large amount of addresses could affect the gas fee and that?
Thank you so much i started to learn solidity few months ago and im trying to understand all better and focus on efficience.