1 viewer
rust 1,961,941 · typescript 233,850 · javascript 141,145 · python 22,871 · 6,801 files · digest 6d882eacc8db · built in 12.5 s · crystals off
crates/cre8-app-hypermatch2/src/match_engine.rs
Items
type DurableHypergraph type DurableHypergraph struct HyperMatch2Config impl HyperMatch2Config struct ArcCandidate struct FlowRecord struct TransactionRecord struct PathKind struct PathHop struct PathRecord struct PositionOutcome struct LiquiditySummary struct PerformanceStats struct HyperMatch2Result struct PositionBook struct FlowEdge enum BookSide struct PathSearch impl PathSearch
Functions
By call-graph weight (PageRank; 1.0 is the average function). 53 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| PathSearch::walksrc/match_engine.rs:604 | method | 11 | 5 | 2 | 4 | 1.7 | |
| sparse_arc_candidatesrc/match_engine.rs:340 | fn | 24 | 3 | 2 | 1 | 1.6 | |
| total_amountsrc/match_engine.rs:455 | fn | 3 | 1 | 2 | 0 | 1.5 | |
| canonical_position_idsrc/match_engine.rs:154 | fn | 3 | 1 | 2 | 0 | 1.2 | |
| build_path_from_indexessrc/match_engine.rs:525 | fn | 38 | 4 | 1 | 2 | 1.1 | |
| parse_amountsrc/match_engine.rs:162 | fn | 21 | 6 | 2 | 0 | 1.1 | |
| index_positive_assetssrc/match_engine.rs:289 | fn | 7 | 3 | 1 | 0 | 1.1 | |
| candidate_arcs_for_assetsrc/match_engine.rs:312 | fn | 27 | 5 | 1 | 1 | 1.1 | |
| build_pathssrc/match_engine.rs:663 | fn | 6 | 1 | 2 | 4 | 1 | |
| PathSearch::path_limit_reachedsrc/match_engine.rs:654 | method | 3 | 1 | 2 | 0 | 1 | |
| kind_for_pathsrc/match_engine.rs:509 | fn | 15 | 5 | 1 | 0 | 1 | |
| PathSearch::neighborssrc/match_engine.rs:616 | method | 3 | 1 | 1 | 0 | 0.8 | |
| PathSearch::visit_edgesrc/match_engine.rs:620 | method | 13 | 3 | 1 | 3 | 0.8 | |
| PathSearch::hop_limit_reachedsrc/match_engine.rs:658 | method | 3 | 1 | 1 | 0 | 0.8 | |
| build_sparse_arcssrc/match_engine.rs:258 | fn | 12 | 1 | 2 | 3 | 0.8 | |
| assetssrc/match_engine.rs:796 | fn | 3 | 1 | 1 | 0 | 0.8 | |
| decrement_mapsrc/match_engine.rs:389 | fn | 19 | 3 | 1 | 0 | 0.7 | |
| PathSearch::skip_nextsrc/match_engine.rs:634 | method | 3 | 2 | 1 | 0 | 0.7 | |
| PathSearch::push_path_edgesrc/match_engine.rs:638 | method | 6 | 2 | 1 | 1 | 0.7 | |
| PathSearch::recurse_if_opensrc/match_engine.rs:645 | method | 8 | 2 | 1 | 1 | 0.7 | |
| index_sparse_arc_bookssrc/match_engine.rs:271 | fn | 17 | 2 | 1 | 1 | 0.7 | |
| collect_sparse_arc_candidatessrc/match_engine.rs:297 | fn | 14 | 2 | 1 | 1 | 0.7 | |
| prune_sparse_arcssrc/match_engine.rs:365 | fn | 23 | 4 | 1 | 0 | 0.7 | |
| run_hypermatch2src/match_engine.rs:726 | fn | 53 | 2 | 2 | 8 | 0.7 | |
| PathSearch::newsrc/match_engine.rs:575 | method | 11 | 1 | 1 | 0 | 0.7 | |
| flow_edgessrc/match_engine.rs:670 | fn | 28 | 4 | 1 | 0 | 0.7 | |
| edge_adjacencysrc/match_engine.rs:699 | fn | 7 | 2 | 1 | 0 | 0.7 | |
| sort_and_limit_pathssrc/match_engine.rs:713 | fn | 12 | 2 | 1 | 0 | 0.7 | |
| canonical_asset_idsrc/match_engine.rs:158 | fn | 3 | 1 | 1 | 0 | 0.7 | |
| add_book_amountsrc/match_engine.rs:250 | fn | 7 | 2 | 1 | 0 | 0.7 | |
| default_position_booksrc/match_engine.rs:233 | fn | 3 | 1 | 1 | 0 | 0.7 | |
| apply_edge_asset_amountsrc/match_engine.rs:237 | fn | 12 | 2 | 1 | 3 | 0.7 | |
| upsert_position_book_vertexsrc/match_engine.rs:209 | fn | 10 | 1 | 1 | 1 | 0.7 | |
| apply_exchange_edgesrc/match_engine.rs:220 | fn | 12 | 2 | 1 | 3 | 0.7 | |
| PathSearch::search_from_startsrc/match_engine.rs:597 | method | 6 | 1 | 1 | 1 | 0.6 | |
| sorted_startssrc/match_engine.rs:707 | fn | 5 | 1 | 1 | 0 | 0.6 | |
| fresh_graphsrc/match_engine.rs:787 | fn | 8 | 1 | 1 | 0 | 0.6 | |
| insert_positionsrc/match_engine.rs:800 | fn | 10 | 1 | 1 | 2 | 0.6 | |
| extract_position_bookssrc/match_engine.rs:184 | fn | 18 | 4 | 1 | 3 | 0.6 | |
| allocate_flowssrc/match_engine.rs:409 | fn | 32 | 3 | 1 | 2 | 0.6 | |
| to_transactionssrc/match_engine.rs:442 | fn | 12 | 1 | 1 | 0 | 0.6 | |
| build_outcomessrc/match_engine.rs:459 | fn | 34 | 3 | 1 | 1 | 0.6 | |
| build_liquidity_summarysrc/match_engine.rs:494 | fn | 14 | 2 | 1 | 1 | 0.6 | |
| HyperMatch2Config::normalizesrc/match_engine.rs:20 | method | 12 | 4 | 0 | 0 | 0.5 | |
| PathSearch::runsrc/match_engine.rs:587 | method | 9 | 3 | 0 | 3 | 0.5 | |
| hypermatch2_config_normalize_fills_zero_defaultssrc/match_engine.rs:812 | fn | 13 | 1 | 0 | 0 | 0.5 | |
| generator_config_normalize_clamps_and_defaultssrc/match_engine.rs:827 | fn | 17 | 1 | 0 | 0 | 0.5 | |
| generate_positions_is_deterministic_for_fixed_seedsrc/match_engine.rs:846 | fn | 20 | 2 | 0 | 1 | 0.5 | |
| parse_amount_handles_int_float_string_and_negativesrc/match_engine.rs:868 | fn | 18 | 1 | 0 | 1 | 0.5 | |
| run_hypermatch2_extracts_flows_outcomes_and_paths_from_exchange_graphsrc/match_engine.rs:888 | fn | 38 | 2 | 0 | 3 | 0.5 | |
| sparse_arcs_prune_neighbor_limits_and_skip_invalid_candidatessrc/match_engine.rs:928 | fn | 51 | 1 | 0 | 2 | 0.5 | |
| build_paths_aggregates_assets_deduplicates_and_respects_limitssrc/match_engine.rs:981 | fn | 82 | 3 | 0 | 1 | 0.5 | |
| hypermatch2_specs_share_app_contractsrc/match_engine.rs:1065 | fn | 21 | 2 | 0 | 0 | 0.5 |
Source not readable from this process.