This week's book giveaways are in the Jython/Python and Object-Oriented programming forums.
We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Garbage Collection

 
Ranch Hand
Posts: 458
Scala jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The Go documentation mentions "precise garbage collection", what exactly does that mean? How does it differ from the Java GC?
 
Author
Posts: 14
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, I'm no expert in garbage collection systems.

The garbage collection system in Go is a moving target. With each new release it gets better. It used to be slower and sometimes noticeable. The performance of the GC has been an area of focus for a couple years and that focus has lead to improvements.

Go used to use a stop-the-world GC. As of Go 1.5 the GC is able to do much of its work in parallel. If you want to read about it you can start here. Yet, since this point the GC has continued to see improvements. In particular to the amount of time the GC pauses take which keep shrinking.

From a practical perspective, garbage collection in Go isn't something you notice most of the time.

Unfortunately, I don't know enough about how the Java GC works to do a comparison.
 
"Don't believe every tiny ad you see on the internet. But this one is rock solid." - George Washington
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!