Class KernelFusionPass

java.lang.Object
org.impulsegraph.compiler.passes.stage2.KernelFusionPass
All Implemented Interfaces:
CompilerPass

public final class KernelFusionPass extends Object implements CompilerPass
Stage 2 Optimization Pass: Multi-Hop Kernel Fusion.

Rewrites two consecutive forward CSR walks (csr-walk rel1) and (csr-walk rel2) into a single fused 2-hop traversal (csr-walk-2hop rel1 rel2) when the intermediate relation multiplicity is below OptimizerConfig.FUSED_2HOP_MAX_MULTIPLICITY_THRESHOLD (1.5).

Governed by OptimizerConfig.ENABLE_EXPERIMENTAL_2HOP_FUSION / CompilerOptions#enableExperimental2HopFusion().