Search Results for

    Show / Hide Table of Contents

    Class Fusing

    This class holds some graph transformation functions that can fuse together multiple operation stages into synchronous execution islands. The purpose is to reduce the number of Actors that are created in order to execute the stream and thereby improve start-up cost as well as reduce element traversal latency for large graphs. Fusing itself is a time-consuming operation, meaning that usually it is best to cache the result of this computation and reuse it instead of fusing the same graph many times.

    Fusing together all operations which allow this treatment will reduce the parallelism that is available in the stream graph’s execution—in the worst case it will become single-threaded and not benefit from multiple CPU cores at all. Where parallelism is required, the Attributes.AsyncBoundary attribute can be used to declare subgraph boundaries across which the graph shall not be fused.

    Inheritance
    object
    Fusing
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Streams
    Assembly: Akka.Streams.dll
    Syntax
    public static class Fusing

    Methods

    | Edit this page View Source

    Aggressive<TShape, TMat>(IGraph<TShape, TMat>)

    Fuse all operations where this is technically possible (i.e. all implementations based on GraphStage<TShape>) and not forbidden via Attributes.AsyncBoundary

    Declaration
    public static Fusing.FusedGraph<TShape, TMat> Aggressive<TShape, TMat>(IGraph<TShape, TMat> graph) where TShape : Shape
    Parameters
    Type Name Description
    IGraph<TShape, TMat> graph

    TBD

    Returns
    Type Description
    Fusing.FusedGraph<TShape, TMat>

    TBD

    Type Parameters
    Name Description
    TShape

    TBD

    TMat

    TBD

    | Edit this page View Source

    StructuralInfo<TShape, TMat>(IGraph<TShape, TMat>, Attributes)

    Return the StructuralInfo for this Graph without any fusing

    Declaration
    public static StructuralInfoModule StructuralInfo<TShape, TMat>(IGraph<TShape, TMat> graph, Attributes attributes) where TShape : Shape
    Parameters
    Type Name Description
    IGraph<TShape, TMat> graph
    Attributes attributes
    Returns
    Type Description
    StructuralInfoModule
    Type Parameters
    Name Description
    TShape
    TMat
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET