Until now, I was worried about the size of RAM, so I was passing most variable values in a “call by reference” method. However, I heard that in multicore CPUs, the “call by value” method is better than the “call by reference” method due to the cache memory.
Therefore, I try to modify it in a “call by value” method, but I am still worried about the size of the RAM when passing the class object.
First, I want to know if what I wrote above is true.
And if it is true, for me to get the hang of it, can you tell me how big the int array can be passed by ‘call-by-value’ based on 1-core CPU?
I would like to know the size that can be passed without worrying about lack of RAM capacity based on 1-core cpu.
yooooooo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.