Class PathPool

Public

Pools path objects to reduce load on the garbage collector.

Deprecated

Generic version is now obsolete to trade an extremely tiny performance decrease for a large decrease in boilerplate for Path classes

Public Static Methods

GetPath ()
Public Static
GetPath< T > ()

Get a path from the pool or create a new one if the pool is empty.

Public Static
GetSize ()
Public Static
GetSize (type)

Number of pooled instances of a path of the specified type.

Public Static
GetTotalCreated ()
Public Static
GetTotalCreated (type)

Total created instances of paths of the specified type.

Public Static
Pool (path)

Adds a path to the pool.

Public Static
Recycle (path)

Recycles a path and puts in the pool.

Public Static
Warmup (count, length)

Warms up path, node list and vector list pools.

Public Static

Private/Protected Members

pool
Private Static Readonly
totalCreated
Private Static Readonly