TheEvergreenStateCollege / smarty-plants

Plant genome sequencing
2 stars 2 forks source link

Fail gracefully when system free memory is too low #29

Open learner-long-life opened 1 month ago

learner-long-life commented 1 month ago

Right now when Rust code loads the suffix tree, it runs out of memory and fails rather uncleanly, causing the OS to kill it and clean it up.

@AbyssalRemark has discovered a way to handle this in Rust so that we can take conditional action within our suffix construction code itself. Perhaps check every million characters in main method.

Feel free to link the PR here whenever you commit and push.