# Fast ways to check if an element is in a vector of vector of elements

**URL:** https://discourse.julialang.org/t/fast-ways-to-check-if-an-element-is-in-a-vector-of-vector-of-elements/121598
**Category:** Performance
**Tags:** question
**Created:** [October 22, 2024, 3:29pm UTC](https://discourse.julialang.org/t/fast-ways-to-check-if-an-element-is-in-a-vector-of-vector-of-elements/121598 "2024-10-22T15:29:41Z")
**Posts on this page:** 1
**Page:** 2

<div class="post-metadata">

### Author: ![rocco\_sprmnt21](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rocco_sprmnt21/32/20127_2.png) [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)
#### Post date: [October 23, 2024, 3:42pm UTC](https://discourse.julialang.org/t/fast-ways-to-check-if-an-element-is-in-a-vector-of-vector-of-elements/121598/21 "2024-10-23T15:42:36Z")

</div>

> [@matthias314](#):
>
> With Julia 1.11.0, the difference is quite small on my machine:

```julia
julia> versioninfo()
Julia Version 1.9.0
Commit 8e63055292 (2023-05-07 11:25 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 8 × 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz      
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, tigerlake)
  Threads: 4 on 8 virtual cores
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 4

```

Maybe after ver 1.9 they changed something to the enumerate() function

[Previous page](https://discourse.julialang.org/t/fast-ways-to-check-if-an-element-is-in-a-vector-of-vector-of-elements/121598.md?page=1)
