4 ms·
Can I say X is a value-type(or better annotate it in declaration)? If not then I don't have that control. Your compiler doesn't know your data access patterns,
by vvanders 10y ago
Can I say X is a value-type(or better annotate it in declaration)? If not then I don't have that control.
Your compiler doesn't know your data access patterns, dataset size or a myriad of other factors that you need to tune if you really want to get full utilization from your hardware. To be clear I'm talking about ~5% of software out there, but when you need it you really need it.
- _ph_ 10y agoYes, the distinction between value and pointer types is explicit in the language, so you have all the control. This is, why you also have more control about the memory layout than in Java, which makes a huge difference in performance.
- pjmlp 10y agoFor the time being, until Java 10 gets released. But how things are going regarding Java releases, Go could even get generics before Java 10 gets released.
- weberc2 10y agoYes, it has value and pointer types, just like C (except without pointer arithmetic).