FilePositionCache allow accumulating entries while appending fixed sized chunks/pages saving expensive memory copies while enlarging capacity: InMemoryLog could make use of a similar mechanism for its entries.
Given that InMemoryLog is not for production usage this is more a wish then an actual requirement, although it's pretty handy to use it to benchmark the whole raft protocol machinery without I/O