AI Translation
This post is translated from Chinese into English through AI.View Original
RSSHub Radar has had a memory leak bug for several years, and the cause has never been found. Even after rewriting the entire repository code, the issue was not resolved. It was very painful. Today, I finally caught the culprit, which is the native DOMParser of Chrome.
The reference to the DOM returned by DOMParser will permanently exist in memory, cannot be manually cleared, and will not be cleaned by the garbage collector. Eventually, more and more memory will explode.