A
A
Artem Prokhorov2021-12-23 18:37:09
go
Artem Prokhorov, 2021-12-23 18:37:09

Is memory allocated for a function argument passed by a pointer?

After all, a pointer to memory is some kind of value, so I want to understand how to do it as optimized as possible. Roughly speaking, I want to understand whether it is necessary to try to work to the maximum through pointers.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Sviridov, 2021-12-23
@kotcich

pprof to help you. Therefore, the use of pointers is not always justified and depends on the specific situation.

whether it is necessary to try to work to the maximum through pointers

Not

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question