Closed Hyhyx closed 2 months ago
There are many anonymous functions in my program, and during batch runs, I found that memory keeps growing. Currently, I have found that the functions have circular references. How do I optimize them?
Circular references in Go do not cause memory leaks unless you define a finalizer on any if the involved objects (which goja doesn't do).
There are many anonymous functions in my program, and during batch runs, I found that memory keeps growing. Currently, I have found that the functions have circular references. How do I optimize them?