My concern is to ease the work of the garbage collector, to avoid frequent
and long pauses.
What is your opinion about the following sentences ?
- Instead of creating 100'000 objects of type T separately, is it better to
create one big array of 100'000 elements T ?
- Each of these objects contains 8 pointers *T to other objects. Is it
better to replace these pointers *T by indices (int) into the array of
- The frequency of the GC is proportional to the garbage creation rate ?
- The GC duration is proportional to the total number of pointers used in
all live objects (mark phase), and the number of objects to free (sweep
- Each time a pointer is updated by the Go code, is it true that the
garbage collector must do some processing ?
- What is the most important, finally:
- avoid creating garbage ?
- avoid creating too many objects ?
- avoid creating too many pointers ?
- avoid code that update pointers with high frequency ?
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.