Skip to content

Conversation

kayjan
Copy link
Owner

@kayjan kayjan commented Sep 25, 2025

Description

Have a class e.g., Tree/BinaryTree/DAG that handles construct, export, helper, etc. methods instead of import multiple functions

Testing

Additional notes

Checklist

I have read through the contributing guidelines and ensured that

  • I have added a descriptive title for this pull request.
  • I have followed the convention and standards, and my code is checked for style and correctness.
  • I have added test cases, and unit tests pass with 100% code coverage.
  • I have updated the documentation and code docstrings.

Checklist (for reviewer)

  • I have added label (breaking / enhancement / bug / documentation) to this pull request, if applicable.
  • I will ensure this change is captured in the CHANGELOG.md file.

@kayjan kayjan added the enhancement New feature or request label Sep 25, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 88c140d Previous: fa50586 Ratio
tests/node/test_node_benchmark.py::test_node_benchmark_width_1_depth_10 19205.432832782702 iter/sec (stddev: 0.000003517431971958828) 18940.218986909043 iter/sec (stddev: 0.0000017902529485175662) 0.99
tests/node/test_node_benchmark.py::test_node_benchmark_width_1_depth_100 409.9927533779753 iter/sec (stddev: 0.00012307165242456702) 435.4945855394223 iter/sec (stddev: 0.00000828856426769497) 1.06
tests/node/test_node_benchmark.py::test_node_benchmark_width_1_depth_1000 14.41817138980679 iter/sec (stddev: 0.000013863535552477134) 14.440028965167407 iter/sec (stddev: 0.0001451497181618794) 1.00
tests/node/test_node_benchmark.py::test_node_benchmark_width_2_depth_10 88.05278038629801 iter/sec (stddev: 0.0001504693531871996) 87.22067638352203 iter/sec (stddev: 0.00012580624647685356) 0.99
tests/node/test_node_benchmark.py::test_node_benchmark_width_1_depth_10_no_assertions 26633.853759273363 iter/sec (stddev: 0.000004187627779854864) 25277.06826471292 iter/sec (stddev: 0.000004220791088877952) 0.95
tests/node/test_node_benchmark.py::test_node_benchmark_width_1_depth_100_no_assertions 1798.0194815379098 iter/sec (stddev: 0.000028564285532802612) 1817.5752437531671 iter/sec (stddev: 0.000028229329049720055) 1.01
tests/node/test_node_benchmark.py::test_node_benchmark_width_1_depth_1000_no_assertions 105.78458067130953 iter/sec (stddev: 0.005136427830469673) 94.38259031575035 iter/sec (stddev: 0.006713387392543654) 0.89
tests/node/test_node_benchmark.py::test_node_benchmark_width_2_depth_10_no_assertions 127.16926039712881 iter/sec (stddev: 0.00015830473272127833) 125.55514836626152 iter/sec (stddev: 0.00019261291734703524) 0.99

This comment was automatically generated by workflow using github-action-benchmark.

Copy link
Contributor

Code Coverage

Package Line Rate Branch Rate Complexity Health
bigtree 100% 100% 0
bigtree.binarytree 100% 100% 0
bigtree.dag 100% 100% 0
bigtree.node 100% 100% 0
bigtree.tree 100% 100% 0
bigtree.tree.construct 100% 100% 0
bigtree.tree.export 100% 100% 0
bigtree.utils 100% 100% 0
Summary 100% (3263 / 3263) 100% (1114 / 1114) 0

@kayjan kayjan merged commit f517522 into master Sep 26, 2025
5 checks passed
@kayjan kayjan deleted the feature/improve-api branch September 26, 2025 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant