Hacker News new | ask | show | jobs
by seabass 360 days ago
With js being a garbage collected language, what is the benefit of the destroy method here and why is it necessary?
1 comments

The is no guarantee when it will be garbage collected. For large local models that use a lot of resources they should be unloaded as soon as possible to allow other programs on the computer to use the resources.