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

findall: support custom function as argument #488

Merged
merged 5 commits into from
Mar 18, 2021
Merged

findall: support custom function as argument #488

merged 5 commits into from
Mar 18, 2021

Conversation

iblislin
Copy link
Collaborator

julia> @benchmark findall($cl .> 100)
BenchmarkTools.Trial:
  memory estimate:  10.53 KiB
  allocs estimate:  28
  --------------
  minimum time:     6.108 μs (0.00% GC)
  median time:      7.105 μs (0.00% GC)
  mean time:        8.535 μs (9.45% GC)
  maximum time:     2.347 ms (98.30% GC)
  --------------
  samples:          10000
  evals/sample:     5

julia> @benchmark findall(>(100), $cl)
BenchmarkTools.Trial:
  memory estimate:  2.28 KiB
  allocs estimate:  8
  --------------
  minimum time:     2.064 μs (0.00% GC)
  median time:      2.974 μs (0.00% GC)
  mean time:        3.067 μs (2.51% GC)
  maximum time:     201.347 μs (97.47% GC)
  --------------
  samples:          10000
  evals/sample:     9

Ref #456 (comment)

```
findall(>(100), cl)
```
@iblislin
Copy link
Collaborator Author

cc @findmyway

@codecov-io
Copy link

codecov-io commented Mar 17, 2021

Codecov Report

Merging #488 (996b3ea) into master (ee492a1) will increase coverage by 1.10%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #488      +/-   ##
==========================================
+ Coverage   86.63%   87.74%   +1.10%     
==========================================
  Files          12       12              
  Lines         636      677      +41     
==========================================
+ Hits          551      594      +43     
+ Misses         85       83       -2     
Impacted Files Coverage Δ
src/split.jl 100.00% <100.00%> (ø)
src/modify.jl 100.00% <0.00%> (ø)
src/basemisc.jl 100.00% <0.00%> (ø)
src/readwrite.jl 100.00% <0.00%> (ø)
src/utilities.jl 100.00% <0.00%> (ø)
src/combine.jl 96.70% <0.00%> (+0.19%) ⬆️
src/tables.jl 93.33% <0.00%> (+0.31%) ⬆️
src/timearray.jl 98.01% <0.00%> (+0.75%) ⬆️
src/apply.jl 90.24% <0.00%> (+1.35%) ⬆️
src/broadcast.jl 97.36% <0.00%> (+2.92%) ⬆️

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 ee492a1...996b3ea. Read the comment docs.

@findmyway
Copy link

Thanks for your quick response! 👍

@iblislin iblislin merged commit ecee85a into master Mar 18, 2021
@iblislin iblislin deleted the ib/findall branch March 18, 2021 07:40
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.

3 participants