Dynamic analyses are a standard approach to analyzing and testing concurrent programs. Such techniques observe program traces π and analyze them to infer the presence or absence of bugs. At its core, each analysis maintains a partial order π that represents order dependencies between the events of π . Naturally, the scalability of the analysis largely depends on maintaining π efficiently. The standard data structure for this task has thus far been Vector Clocks. These, however, are slow for analyses that follow a non-streaming style, costing π (π) time for inserting (and propagating) each new ordering in π, where π is the size of π, while they cannot handle the deletion of existing orderings.In this paper we develop Collective Sparse Segment Trees (CSSTs), a simple but elegant data structure for maintaining a partial order π. CSSTs thrive when the width π of π is much smaller than the size π of its domain, allowing inserting, deleting, and querying for orderings in π to run in π (log π) time. For a concurrent trace, π normally equals the number of its threads, and is orders of magnitude smaller than its size π, making CSSTs fitting for this setting. Our experiments confirm that CSSTs are the best data structure currently to handle a range of dynamic analyses from existing literature.CCS Concepts: β’ Software and its engineering β Software verification and validation; β’ Theory of computation β Theory and algorithms for application domains; Program analysis.