Skip to content

Fix collaboration server running out of memory on GFF3 import#719

Merged
garrettjstevens merged 1 commit intomainfrom
set_gff_parse_bufferSize
Oct 23, 2025
Merged

Fix collaboration server running out of memory on GFF3 import#719
garrettjstevens merged 1 commit intomainfrom
set_gff_parse_bufferSize

Conversation

@garrettjstevens
Copy link
Copy Markdown
Contributor

I was doing some benchmarking and managed to crash the collaboration server with an out-of-memory error. I realized it was because I imported a GFF3 without sync marks, and the default parser introduced in #681 has bufferSize be Infinity, so it tries to hold the whole GFF3 in memory if there are no sync marks. This PR puts in a reasonable bufferSize of 10,000, similar to what the previous parser had, to avoid this. This means that GFF3s with related features that are very far apart could fail to import properly, but that could probably be solved by sorting the GFF3.

@garrettjstevens garrettjstevens self-assigned this Oct 23, 2025
@garrettjstevens garrettjstevens merged commit 80a4c9e into main Oct 23, 2025
7 of 8 checks passed
@garrettjstevens garrettjstevens deleted the set_gff_parse_bufferSize branch October 23, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet