JuliaDynamics / Agents.jl

Agent-based modeling framework in Julia
https://juliadynamics.github.io/Agents.jl/stable/
MIT License
725 stars 117 forks source link

Faster sample! function #858

Closed Tortar closed 1 year ago

Tortar commented 1 year ago

This is up to 2x faster than before because it avoids to use DataStructures.counter which in turn use a dict to do the operations

codecov-commenter commented 1 year ago

Codecov Report

Merging #858 (9600b87) into main (360eb04) will increase coverage by 0.10%. The diff coverage is 100.00%.

:exclamation: Current head 9600b87 differs from pull request most recent head 164032d. Consider uploading reports for the commit 164032d to get more accurate results

@@            Coverage Diff             @@
##             main     #858      +/-   ##
==========================================
+ Coverage   70.83%   70.94%   +0.10%     
==========================================
  Files          42       42              
  Lines        2788     2795       +7     
==========================================
+ Hits         1975     1983       +8     
+ Misses        813      812       -1     
Files Changed Coverage Δ
src/simulations/sample.jl 100.00% <100.00%> (+3.12%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more