golo-lang icon indicating copy to clipboard operation
golo-lang copied to clipboard

struct frozen copy optimization

Open yloiseau opened this issue 8 years ago • 0 comments

When making a frozen copy of a frozen struct, a real shalow copy (new instance) is created, then frozen. Since the instance is already frozen, and thus immutable, the instance itself could be directly returned.

yloiseau avatar Apr 04 '17 08:04 yloiseau