Commit e735a84
Arpith Siromoney
Optimize: Only JSON.stringify articles when storing to S3
Move JSON.stringify call inside the conditional that checks if article
needs to be stored. This prevents stringifying every article in large
feeds when most are already in Redis.
Fixes memory leak that was causing 'JavaScript heap out of memory' crashes.1 parent bee9d72 commit e735a84
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | 197 | | |
199 | 198 | | |
200 | 199 | | |
| |||
213 | 212 | | |
214 | 213 | | |
215 | 214 | | |
| 215 | + | |
| 216 | + | |
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
| |||
0 commit comments