# I have a much faster version of evalpoly. Why is it faster?

**URL:** <https://discourse.julialang.org/t/i-have-a-much-faster-version-of-evalpoly-why-is-it-faster/79899>\
**Category:** Performance\
**Created:** [April 23, 2022, 3:45pm UTC](https://discourse.julialang.org/t/i-have-a-much-faster-version-of-evalpoly-why-is-it-faster/79899 "2022-04-23T15:45:34Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [May 9, 2022, 2:29pm UTC](https://discourse.julialang.org/t/i-have-a-much-faster-version-of-evalpoly-why-is-it-faster/79899/11 "2022-05-09T14:29:29Z")

</div>

> [@gvdeynde](#):
>
> Yep. But it doesn’t work for evalpoly… Or at least, I don’t know how to tell the code that the `x` argument should be broadcasted and not the `p` .

`evalpoly.(x,Ref(p))` or ` evalpoly.(x,(p,))`

See also [How to broadcast over only certain function arguments?](https://discourse.julialang.org/t/how-to-broadcast-over-only-certain-function-arguments/19274)

---

_[View the full topic](https://discourse.julialang.org/t/i-have-a-much-faster-version-of-evalpoly-why-is-it-faster/79899)._
