FName - Pass by value or pass by reference

I think compiler do the work and there is practically no difference in performance.
Im asking because Im sure dealing with FName isnt critical part of your code to worry about performance.

Ad.1) You sure? TotalCommander counts above 500 files with ‘const FName&’ phrase (just in /runtime subdir)
Ad.2) Yes, but const is important part of language. Optimizers loves const :slight_smile:

Seriously? Discussion about eight-byte structure, which perfectly fits in x64 registers? Lol.