Skip to content

Improve AliasTable sampler#2036

Open
devmotion wants to merge 1 commit intomasterfrom
dmw/aliastable
Open

Improve AliasTable sampler#2036
devmotion wants to merge 1 commit intomasterfrom
dmw/aliastable

Conversation

@devmotion
Copy link
Member

AliasTables contains a rand! method that is optimized for some alias tables: https://github.com/LilithHafner/AliasTables.jl/blob/a8e7dfbd9744df7c718d4736d92b11b24e4e7add/src/AliasTables.jl#L322-L334

So we should make use of it when drawing multiple samples instead of always falling back to a loop over rand calls.

@codecov-commenter
Copy link

codecov-commenter commented Feb 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.44%. Comparing base (f1ff9e8) to head (a3a34f3).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2036   +/-   ##
=======================================
  Coverage   86.44%   86.44%           
=======================================
  Files         147      147           
  Lines        8838     8841    +3     
=======================================
+ Hits         7640     7643    +3     
  Misses       1198     1198           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants