Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iterative Approach #7

Merged
merged 10 commits into from
May 19, 2023
Merged

Iterative Approach #7

merged 10 commits into from
May 19, 2023

Conversation

benbrandt
Copy link
Owner

As is always the case in Rust, the "elegant" recursive approach causes issues.

When building on top of this for Markdown Splitting, I ran into stack overflow issues, as well as compile time issues, which I think comes from lots of impl Iterator return types the compiler has to recursively figure out.

Moving to an iterative approach with a custom impl Iterator for walking through the text str. And then can hopefully use a similar approach for walking through the Markdown events.

@codecov
Copy link

codecov bot commented May 16, 2023

Codecov Report

Patch coverage: 96.25% and project coverage change: -0.81 ⚠️

Comparison is base (58b042e) 97.59% compared to head (7e4d575) 96.79%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
- Coverage   97.59%   96.79%   -0.81%     
==========================================
  Files           5        5              
  Lines         458      374      -84     
==========================================
- Hits          447      362      -85     
- Misses         11       12       +1     
Impacted Files Coverage Δ
src/lib.rs 96.93% <96.25%> (-0.81%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@benbrandt benbrandt marked this pull request as ready for review May 19, 2023 03:19
@benbrandt benbrandt merged commit ebc2c76 into main May 19, 2023
@benbrandt benbrandt deleted the iterative-approach branch May 19, 2023 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant