# Is there any efficient way to generating the non-associative binary products ?

**URL:** https://discourse.julialang.org/t/is-there-any-efficient-way-to-generating-the-non-associative-binary-products/23255
**Category:** Performance
**Tags:** question
**Created:** [April 17, 2019, 6:33pm UTC](https://discourse.julialang.org/t/is-there-any-efficient-way-to-generating-the-non-associative-binary-products/23255 "2019-04-17T18:33:58Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)
#### Post date: [April 17, 2019, 7:10pm UTC](https://discourse.julialang.org/t/is-there-any-efficient-way-to-generating-the-non-associative-binary-products/23255/2 "2019-04-17T19:10:40Z")

</div>

Yes, it should definitely be possible to improve the speed of your Julia code. However, it will be much easier to help you if you can follow the directions here: [PSA: how to quote code with backticks](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530) so that your code will be more readable. You should also take a look at the general Julia performance tips: [Performance Tips · The Julia Language](https://docs.julialang.org/en/v1/manual/performance-tips) and in particular the section about avoiding fields with abstract type, which is a problem with your current code: [Performance Tips · The Julia Language](https://docs.julialang.org/en/v1/manual/performance-tips/index.html#Avoid-fields-with-abstract-type-1)

---

_[View the full topic](https://discourse.julialang.org/t/is-there-any-efficient-way-to-generating-the-non-associative-binary-products/23255)._
