> I am from perf point of view.

Hardly. So:

  * With lent: `[]` does not do the deref but the caller does as the address is 
irrelevant.
  * Without lent: `[]` does do the deref in order to hand you an `int` and the 
caller does not have to deref.



So in both cases there is an address computation and a memory fetch. No 
compiler optimization of `lent int` to `int` required. (But yes, it is 
possible.)

Reply via email to