Packages

sealed trait Hints extends AnyRef

Enables tuning of the internal representation of adjacency lists. Basically, an Array representation is preferable over a hash table up to a node degree of about 200.

Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Hints
  2. AnyRef
  3. Any
Implicitly
  1. by ChainingOps
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def capacityIncrement: Int

    The size of free space to add to the initialCapacity whenever the size of this Set becomes greater than the initialCapacity.

    The size of free space to add to the initialCapacity whenever the size of this Set becomes greater than the initialCapacity. It should be chosen such that incrementing need not take place too often.

  2. abstract def compactUpToUsed: Int

    Compact the underlying Array only if it has at most used space of this percentage.

    Compact the underlying Array only if it has at most used space of this percentage. Compression takes place only user-triggered by a call to compact. The higher this value the more often compact leads to a compression. 0 means never, 100 means always compact.

  3. abstract def hashTableThreshold: Int

    The internal representation of the adjacency list switches to a hash table when the number of edges at a given node exceeds this value.

    The internal representation of the adjacency list switches to a hash table when the number of edges at a given node exceeds this value. If both initialCapacity and capacityIncrement and this value are set to 0 a solely hash table representation will be used irrespective of the set size. This value should be close to the size limit an Array representation is more efficient on the JVM with regard to looking up a given element based on == as opposite to hashCode. Varying with JVM implementations/configurations this limit may come in somewhere between 10 and 30.

  4. abstract def initialCapacity: Int

    The initial length of the internal Array representation.

    The initial length of the internal Array representation. It should be chosen such that it's greater than the final size in a significant percentage of cases. The less heap space is a concern, the higher initialCapacity may be set.

Concrete Value Members

  1. final def nextCapacity(currentCapacity: Int): Int

    Returns a positive number > currentCapacity for an array or 0 for a hash table.

  2. def pipe[B](f: (Hints) => B): B
    Implicit
    This member is added by an implicit conversion from Hints toChainingOps[Hints] performed by method ChainingOps in scalax.collection.
    Definition Classes
    ChainingOps
  3. def propagate(fromSize: Int): Hints
  4. val self: Hints
    Implicit
    This member is added by an implicit conversion from Hints toChainingOps[Hints] performed by method ChainingOps in scalax.collection.
    Definition Classes
    ChainingOps
  5. def tap[U](f: (Hints) => U): Hints
    Implicit
    This member is added by an implicit conversion from Hints toChainingOps[Hints] performed by method ChainingOps in scalax.collection.
    Definition Classes
    ChainingOps