TT by-reference

GregTomkins

Active Member
We have code using temp-tables as input parameters, generally passed by-value using pre-v10 syntax. We are thinking about changing these to by-reference for the sole purpose of improving performance.

Does anyone have any thoughts on this, and specifically, is there any notion of passing a TT 'by-reference but read-only' (so the data is neither copied nor modifiable by the callee).

I am aware that this change doesn't make sense across machine boundaries, and is proportional to the size of the TT and frequency of it being passed around.
 
The performance impact can be stunning.

But read-only is not a feature.

TMH will shortly chime in and tell you to encapsulate the TT in a class.
 
Doesn't have to be a class. Encapsulate it in a PP or SP and you won't need to pass it.
 
Back
Top