Исходники и презентации

This commit is contained in:
2025-05-23 07:26:39 +03:00
parent aa948179d5
commit 02d8430a3a
514 changed files with 13773 additions and 0 deletions

View File

@ -0,0 +1,21 @@
package main
import (
"fmt"
"unsafe"
)
type bucketV1 struct {
key int8
value int64
}
type bucketV2 struct {
keys [8]int8
values [8]int64
}
func main() {
fmt.Println("bucketsV1:", unsafe.Sizeof([8]bucketV1{}))
fmt.Println("bucketsV2:", unsafe.Sizeof(bucketV2{}))
}