Skip to content

Reduce the long compiling time #19

@xuanzhaogao

Description

@xuanzhaogao

The compiling time is quite long

julia> using OptimalBranching, Graphs

julia> g = random_regular_graph(60, 3)

{60, 90} undirected simple Int64 graph

julia> @time mis_branch_count(g, reducer = MISReducer())
 18.741602 seconds (76.81 M allocations: 3.767 GiB, 4.36% gc time, 99.22% compilation time)
(26, 6)

julia> @time mis_branch_count(g, reducer = MISReducer())
  0.376592 seconds (1.01 M allocations: 49.441 MiB, 74.87% compilation time)
(26, 6)

julia> @time mis_branch_count(g, reducer = MISReducer())
  0.182582 seconds (476.19 k allocations: 23.840 MiB, 10.33% gc time, 34.03% compilation time)
(26, 6)

julia> @time mis_branch_count(g, reducer = MISReducer())
  0.166746 seconds (484.08 k allocations: 24.346 MiB, 44.60% compilation time)
(26, 6)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions