How expensive is it to dereference a pointer?

后端 未结 6 1545
攒了一身酷
攒了一身酷 2020-12-12 15:07

How expensive is it to perform the dereference operation on a pointer?

I can imagine that the memory transfer is somehow proportional to the object size, but I want

6条回答
  •  清歌不尽
    2020-12-12 15:50

    The dereferencing of a pointer shouldn't be much more than copying an address to a (address)register. Thats all.

提交回复
热议问题