• Max Kellermann's avatar
    queue/IdTable: lazy-initialize the "data" array · b0c92e1a
    Max Kellermann authored
    With large "max_playlist_length" settings, the "data" array can be
    very large, and initializing it during MPD startup causes page faults,
    resulting in allocation of physical RAM.  This commit postpones the
    initialization until the queue is really large, to avoid wasting
    memory.
    b0c92e1a
IdTable.hxx 2.32 KB