mirror of
https://github.com/SillyTavern/SillyTavern-Fandom-Scraper.git
synced 2026-11-05 00:37:44 +00:00
[PR #9] [MERGED] Fix heap out of memory crash when scraping large wikis #13
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SillyTavern/SillyTavern-Fandom-Scraper#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/SillyTavern/SillyTavern-Fandom-Scraper/pull/9
Author: @Nidelon
Created: 11/26/2025
Status: ✅ Merged
Merged: 11/26/2025
Merged by: @Cohee1207
Base:
main← Head:main📝 Commits (3)
7c283c4optimize memory usage in scraping functions08eea68buildf7ecfe1Remove trailing spaces📊 Changes
2 files changed (+22 additions, -7 deletions)
View changed files
📝
dist/plugin.js(+1 -1)📝
src/index.ts(+21 -6)📄 Description
The plugin was crashing on large wikis because it tried to hold all the raw downloaded data in memory at once until the scrape finished. I changed the code to process the data chunk by chunk as it downloads instead of waiting for the end. This keeps memory usage low and prevents the server from running out of heap space. #8
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.