I can't tell what you were going for with the FixedQueue class. It has some beautiful ASCII art in it, but it seems to be part of a design that was not the final one. In particular it seems to assume that it will be fed data character by character, and thus that a pure linked list would have too much memory overhead. In fact though only chunks are ever stored in it so it could be trivially replaced with something like @iter-tools/queue, which would also allow you to remove the queueSize variable.
I also think the dynamic requires on the queue are premature optimization.
I can't tell what you were going for with the
FixedQueueclass. It has some beautiful ASCII art in it, but it seems to be part of a design that was not the final one. In particular it seems to assume that it will be fed data character by character, and thus that a pure linked list would have too much memory overhead. In fact though only chunks are ever stored in it so it could be trivially replaced with something like@iter-tools/queue, which would also allow you to remove thequeueSizevariable.I also think the dynamic requires on the queue are premature optimization.