# Why findall() function is super slow?

**URL:** <https://discourse.julialang.org/t/why-findall-function-is-super-slow/56222>\
**Category:** Performance\
**Created:** [March 1, 2021, 1:56am UTC](https://discourse.julialang.org/t/why-findall-function-is-super-slow/56222 "2021-03-01T01:56:20Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [March 1, 2021, 2:05am UTC](https://discourse.julialang.org/t/why-findall-function-is-super-slow/56222/4 "2021-03-01T02:05:31Z")

</div>

No, that’s not it. See [This post](https://discourse.julialang.org/t/does-julia-have-equivalent-of-python-df-column-map-dict/47048/9). OP, it’s because the anonymous function is compiling, and you compile it again every time you run that call in global scope.

Won’t be a problem if you have that command in a function.

---

_[View the full topic](https://discourse.julialang.org/t/why-findall-function-is-super-slow/56222)._
