You are working on the betcode-org/flumine repository. The source code is checked out at /testbed at commit…
You are working on the betcode-org/flumine repository. The source code is checked out at /testbed at commit…: a task in SWE-Lego-RL-2699 (Harbor dataset). If BaseStrategy.historic stream ids is converted to a set, the lookup becomes instantaneous as no iteration takes place. Sets use hashing for…
The task
If `BaseStrategy.historic_stream_ids` is converted to a set, the lookup becomes instantaneous as no iteration takes place. Sets use hashing for membership testing and since hash of an int (stream id) is the int itself, this is basically a zero-cost check. I've measured a 10-20x speedup over the current implementation…
Part of Lego-X/Lego-RL-2699.