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

fix: (csl) Use u32 as the counter in async loops #3353

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

dk949
Copy link
Collaborator

@dk949 dk949 commented Oct 29, 2024

Previously, i16 was used, this significantly limited the maximum loop iterations.

Previously, `i16` was used, this significantly limited the maximum loop
iterations.
@dk949 dk949 added the transformations Changes or adds a transformatio label Oct 29, 2024
@dk949 dk949 requested a review from n-io October 29, 2024 15:26
@dk949 dk949 self-assigned this Oct 29, 2024
Copy link

codecov bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@a282e6d). Learn more about missing BASE report.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3353   +/-   ##
=======================================
  Coverage        ?   90.09%           
=======================================
  Files           ?      447           
  Lines           ?    56578           
  Branches        ?     5431           
=======================================
  Hits            ?    50975           
  Misses          ?     4166           
  Partials        ?     1437           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@n-io n-io left a comment

Choose a reason for hiding this comment

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

Looks good, but do we need that many iterations? What is the max number of iterations we intend to run, and could this be modelled with a u16?

@dk949
Copy link
Collaborator Author

dk949 commented Oct 29, 2024

Looks good, but do we need that many iterations? What is the max number of iterations we intend to run, and could this be modelled with a u16?

The runtime I get when running for ~30000 iterations is extremely low, on the order of 10ms, having the ability to bump it higher would let us do longer runs.

Is there any benefit to u16 vs u32 that I'm missing?

@n-io
Copy link
Collaborator

n-io commented Oct 30, 2024

Would you expect there to be any performance implications?

@dk949
Copy link
Collaborator Author

dk949 commented Oct 30, 2024

Not from reading the docs, no.

@dk949 dk949 merged commit da9cbfa into main Oct 30, 2024
14 checks passed
@dk949 dk949 deleted the david/csl-transforms/widen-loop-counter branch October 30, 2024 13:32
EdmundGoodman pushed a commit to EdmundGoodman/xdsl that referenced this pull request Dec 6, 2024
Previously, `i16` was used, this significantly limited the maximum loop
iterations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
transformations Changes or adds a transformatio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants