I have been working on some code where the data I read in is of a fixed predetermined size which I know prior to running the program. I am curious what is the relationship between doing a custom static allocation and doing this with malloc and sbrk? Would the static allocation be faster since you have requested the entire block at the beginning?
I have been working on some code where the data I read in is of a fixed predetermined size which I know prior to running the program. I am curious what is the relationship between doing a custom static allocation and doing this with malloc and sbrk? Would the static allocation be faster since you have requested the entire block at the beginning?