This is a perfect case of weak references BUT these are still objects the GC needs to track, etc. A better solution for a compiler, is that if the original code did not need to free - and that was a substantial amount of the compiler garbage to make a difference - just run the compiler with GC turned off. All of the memory will be reclaimed when the process dies. A much more complicated solution would be to target those areas of the compiler with off heap memory - but that’s a pain. On Feb 27, 2025, at 5:39 PM, Will Faught <w...@willfaught.com> wrote: -- 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 golang-nuts+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/D9256EC4-498F-4632-969E-F31CCE0FD607%40ix.netcom.com. |
- [go-nuts] GC hint for collection timing will....@gmail.com
- [go-nuts] Re: GC hint for collection ... Amnon
- Re: [go-nuts] Re: GC hint for col... 'Michael Pratt' via golang-nuts
- Re: [go-nuts] Re: GC hint for... Will Faught
- Re: [go-nuts] Re: GC hint... Robert Engels
- Re: [go-nuts] Re: GC... Robert Engels
- Re: [go-nuts] Re... Robert Engels