JBoss Community

Re: Call by value vs. call by reference

created by Wolf-Dieter Fink in Performance Tuning - View the full discussion

As Jens say the SPEC conform way is call-by-value.

If you use the standard server configuration it will be so configured.

 

But it is a performance improvment if you use call-by-reference for the duration, because of serialization. Also the througput is better because of unburden the GC.

If you keep the behaviour in mind I see no issue why you should not use call-by-reference.

Reply to this message by going to Community

Start a new discussion in Performance Tuning at Community