An open API service indexing awesome lists of open source software.

https://github.com/strilanc/intervalreferences

Tracking nesting depth to allow efficient array slicing, with no memory leaks and logarithmic slicing costs.
https://github.com/strilanc/intervalreferences

Last synced: 12 months ago
JSON representation

Tracking nesting depth to allow efficient array slicing, with no memory leaks and logarithmic slicing costs.

Awesome Lists containing this project

README

          

IntervalReferences
==================

An *interval reference* keeps a whole section of an array alive, while allowing the rest to be reclaimed if no other references cover it.

The code in this repository is an mockup of how interval references would work, algorithmically, based on using a balanced binary search tree to track nesting depth and detect holes.

An animation of the idea:

![Slicing Collection Animation](http://i.imgur.com/TJYnNPC.gif)