# Will I run into performance issues if I use a matrix of different distributions?

**URL:** <https://discourse.julialang.org/t/will-i-run-into-performance-issues-if-i-use-a-matrix-of-different-distributions/54240>\
**Category:** General Usage\
**Created:** [January 29, 2021, 11:59pm UTC](https://discourse.julialang.org/t/will-i-run-into-performance-issues-if-i-use-a-matrix-of-different-distributions/54240 "2021-01-29T23:59:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BridgeBot](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bridgebot/32/21491_2.png) [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Post date:** [January 29, 2021, 11:59pm UTC](https://discourse.julialang.org/t/will-i-run-into-performance-issues-if-i-use-a-matrix-of-different-distributions/54240/1 "2021-01-29T23:59:47Z")

</div>

Will I run into performance issues if I use a matrix of different distributions? My understanding is that this will be an abstract typed matrix which will be slow. What is a better way to do this?

Note that the poster on Slack cannot see your response here on Discourse. Consider answering the question there or pinging the poster here on Discourse so they see the reponse.  
[(Original message :slack:)](https://julialang.slack.com/archives/C6A044SQH/p1611964770152200?thread_ts=1611964770.152200&cid=C6A044SQH)

---

<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:** [January 30, 2021, 1:37am UTC](https://discourse.julialang.org/t/will-i-run-into-performance-issues-if-i-use-a-matrix-of-different-distributions/54240/2 "2021-01-30T01:37:26Z")

</div>

> [@BridgeBot](#):
>
> My understanding is that this will be an abstract typed matrix which will be slow.

It depends on what operations you want to perform on with that data structure.
