|| at May 11, 2014 at 6:49 pm
Depends on your implementation, but probably not. (Though I don't
understand the internals of Go's garbage collector.)
Just curious, is your data 14 GB in memory or 14 GB on disk?
Related to garbage collection, you will best optimize your program if you
consider the number of allocations you make as much as the size of your
So if the data is loaded into memory and stays there and is not changed
often, I doubt you'll feel any adverse GC effects.
On Sunday, May 11, 2014 12:33:34 PM UTC-6, J. David Lee wrote:
I have a program that loads a large amount of data into memory when it
starts (up to ~14GB depending on input) and this data remains in memory for
the duration of the program. I'm wondering if this will have any effect on
the working of the garbage collector.
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
For more options, visit https://groups.google.com/d/optout.