mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Updated CompilerOptimizations (markdown)
parent
39df6aca67
commit
9daa7daf84
@ -81,7 +81,7 @@ are converted into efficient runtime memclr calls. [Issue](golang.org/issue/5373
|
||||
|
||||
## Non-scannable objects
|
||||
|
||||
Garbage collector does not scan underlying buffers of slices, channels and maps when element type does not contain pointers (both key and value for maps). This allows to hold large data sets in memory without paying high price during garbage collector. For example the following map won't visibly affect GC time:
|
||||
Garbage collector does not scan underlying buffers of slices, channels and maps when element type does not contain pointers (both key and value for maps). This allows to hold large data sets in memory without paying high price during garbage collection. For example, the following map won't visibly affect GC time:
|
||||
|
||||
```go
|
||||
type Key [64]byte // SHA-512 hash
|
||||
|
Loading…
x
Reference in New Issue
Block a user