/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Go Optimization Guide
(goperf.dev)
480 points
jedeusus
| 2 comments |
31 Mar 25 20:29 UTC
|
HN request time: 0.001s
|
source
1.
kunley
◴[
01 Apr 25 08:44 UTC
]
No.
43544332
[source]
▶
>>43539585 (OP)
#
"Although the struct Data contains a [1024]int array, which is 4 KB (assuming int is 4 bytes on the architecture used)"
Huh,what?
I mean, who uses 32b architecture by default?
replies(1):
>>43548953
#
ID:
GO
2.
bombela
◴[
01 Apr 25 16:50 UTC
]
No.
43548953
[source]
▶
>>43544332 (TP)
#
Most C/C++ compilers have 32b int on 64b arch. Maybe the confusion comes from that.
Also it would be 4KiB not 4KB.
↑