Finding a Branch

Find Paths

If the first character is a ‘/’ the path is a Segment or absolute path within a Site.

If the first character is a ‘,’ the path is a child Part relative to the current Branch.

If the first character is a ‘-’ the path is a child Time relative to the current Branch.

If the first character is a ‘+’ the path is a child Number relative to the current Branch.

If the first character is a valid Host character then the path is an Identity which could be a “Host” or “Host/Segment” path.

Notes

The Branch is designed to have a fairly small footprint in memory, less than 200 bytes, to allow much if not all of a Site to be in memory resulting is very fast iteration through or querying of Branches.

The File or the data that is part of a Branch is not necessarily in memory and will be loaded only on demand.

The algorithms are optimized to find a particular type of child Branch.  Slightly different approaches are used for a Part, Time, or Number.

Help Library

Core

Dev

Kind

Kit

Leaf

Map

Message

Net

Overview

Packet

Primitives

Run

Secure

Session

Site

Socket

Sprint

Stack

Tool

The Tree

Primitives

Belt

Bond

Branch

Build

Fact

File

Glob

ID

Image

Leaf

Log

Markup

Money

Object

Package

Parse

Phrase

Render

Sprint

Stack

String

Sum

SVG

Time

Tray

Unit

Verb

Branch

Branch

Bond

Key

Kind

Location

File,Loaded

File,Populated

File State

Find

Part

Time

Number

Relations

Sequence

Service

Branch