When we use malloc() to allocate memory, should we give the size which is in power of two? Or we just give the exact size that we need? Like
malloc()
With today's amount of memory and its speed I don't think it's relevant anymore.
Furthermore, if you're gonna allocate memory frequently you better consider custom memory pooling / pre-allocation.