SkillAgentSearch skills...

Snaptree

Concurrent TreeMap w/ efficient support for clone() and consistent iteration

Install / Use

/learn @nbronson/Snaptree
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

This repository contains SnapTree, a concurrent AVL tree with fast cloning, snapshots, and consistent iteration. It is described in the paper "A Practical Concurrent Binary Search Tree", by N. Bronson, J. Casper, H. Chafi, and K. Olukotun, published in PPoPP'10.

SnapTreeMap is a drop-in replacement for ConcurrentSkipListMap, with the additional guarantee that clone() is atomic and iteration has snapshot isolation. For more details see http://ppl.stanford.edu/papers/ppopp207-bronson.pdf

The current release is 0.2, which has been published to the maven central repository under the groupId edu.stanford.ppl and the artifactId snaptree.

VERSION 0.2:

  • Incorporates an important bugfix to isEmpty()

VERSION 0.1:

  • Initial release

Related Skills

View on GitHub
GitHub Stars152
CategoryCustomer
Updated6d ago
Forks27

Languages

Java

Security Score

80/100

Audited on Mar 24, 2026

No findings