HF RL Explorer

Currently, all sequences in the Sequence class allocate memory dynamically regardless of size, which is…

Currently, all sequences in the Sequence class allocate memory dynamically regardless of size, which is…: a task in LegoFlow-SWE (Harbor dataset). We need to optimize the Sequence class so that short sequences (up to 60 nucleotides, i.e., 120 bits) are stored inline, avoiding heap allocation…

The task

We need to optimize the `Sequence` class so that short sequences (up to 60 nucleotides, i.e., 120 bits) are stored inline, avoiding heap allocation entirely. The class should expose a public method `is_short()` that returns `true` when a sequence is stored inline, and `false` otherwise.

Part of Lego-X/LegoFlow-SWE.