Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Genuine question, from ignorance: How does Go create less garbage than Java? I can certainly appreciate that a lot of the common frameworks used in JEE development may be memory-hogs, but the language itself?


just iterating:

  for (Object o: collection) {
  }
causes memory allocation.

If you are interested, android team at had several talks at Google I/O (not just 2012) about optimizing memory usage.


Cheers, will check those out.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: