developit / developit/vhtml

SSR Memory leak

未关闭
#20 6 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
814
派生
37
PR 合并指标
30 天内没有已合并 PR

描述

I recently added this package in our project and I was told it's causing memory leak in our prod env.

After reading the code, it seems like it's the `sanitized` cache that's causing the problem.

```javascript
sanitized[s] = true;
```

Every generated html string(`s`) would be stored in this cache, and it seems to have caused our server run out of memory and keeps restarting.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。