Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
anematode
3mo ago
0 comments
Save
Share
It is true! If you explicitly synchronize between threads, sure, you can't optimize it in general, but if not, the compiler is well within its rights to cache the access.
0 comments
1 comments · 1 top-level
top
newest
oldest
bjourne
3mo ago
Sure, if the compiler can prove that the objects are thread-local. But that's not the general case.
j
/
k
navigate · click thread line to collapse