developit / developit/vhtml

SSR Memory leak

Abierto
#20 6 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
814
Forks
37
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.