dlang-community / D-YAML

YAML parser and emitter for the D programming language
https://dlang-community.github.io/D-YAML/
Boost Software License 1.0
119 stars 37 forks source link

change canFind() to among() where possible #221

Closed Herringway closed 5 years ago

Herringway commented 5 years ago

Gives us a small performance boost and will lead to a bit of refactoring I'm planning for later.

codecov[bot] commented 5 years ago

Codecov Report

Merging #221 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #221   +/-   ##
=======================================
  Coverage   95.19%   95.19%           
=======================================
  Files          28       28           
  Lines        4143     4143           
=======================================
  Hits         3944     3944           
  Misses        199      199
Impacted Files Coverage Δ
source/dyaml/escapes.d 90.24% <ø> (ø) :arrow_up:
source/dyaml/scanner.d 98.33% <100%> (ø) :arrow_up:
source/dyaml/constructor.d 92.01% <100%> (ø) :arrow_up:
source/dyaml/test/emitter.d 96.66% <100%> (ø) :arrow_up:
source/dyaml/emitter.d 93% <100%> (ø) :arrow_up:
source/dyaml/parser.d 98.32% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 71917d5...cbfedf9. Read the comment docs.