You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 6, 2024. It is now read-only.
Determine experimentally whether pointer or non-pointer receivers of generated types produce faster code.
Theoretically, it is unclear:
Non-pointer receivers afford a single allocation for entire recursive user types. But they incur a stack allocation when MapIterator is called (although it is possible that Go optimizes this away.)
Pointer receivers avoid the above problem, but then every level of a user type involves allocations.
For comparison, note that Protocol Buffers have opted for pointer receivers.
The text was updated successfully, but these errors were encountered:
Determine experimentally whether pointer or non-pointer receivers of generated types produce faster code.
Theoretically, it is unclear:
For comparison, note that Protocol Buffers have opted for pointer receivers.
The text was updated successfully, but these errors were encountered: