Returning large aggregates as values is a potential performance problem, but preventing all aggregate returns is inappropriate because:
returning small aggregates that are mostly handled as complete objects as return values often makes code clearer.
Modern (well not so modern actually) ABIs allow for small aggregates to be returned in registers, so forcing all returns to memory is actually likely to be slower.
if code review does not notice a large aggregate return and nobody notices a performance issue then it doesn't matter
https://github.com/geany/geany/pull/1740
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.