# Really bad performance with concurrecny and how to optimize the code

**URL:** <https://forums.swift.org/t/really-bad-performance-with-concurrecny-and-how-to-optimize-the-code/63732>\
**Category:** Using Swift\
**Tags:** concurrency\
**Created:** [March 15, 2023, 5:44pm UTC](https://forums.swift.org/t/really-bad-performance-with-concurrecny-and-how-to-optimize-the-code/63732 "2023-03-15T17:44:32Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![ncke](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ncke/32/1625_2.png) [@ncke](https://forums.swift.org/u/ncke)\
**Post date:** [March 17, 2023, 7:16pm UTC](https://forums.swift.org/t/really-bad-performance-with-concurrecny-and-how-to-optimize-the-code/63732/21 "2023-03-17T19:16:58Z")

</div>

Sure, I've added the other versions to the Gist: [Async Heat Equation · GitHub](https://gist.github.com/ncke/1013521e5d4e13fec1002c7b521da1ca)

The change in the Python code is mostly adding and then commenting-out print statements! I enjoyed looking at how it works.

---

_[View the full topic](https://forums.swift.org/t/really-bad-performance-with-concurrecny-and-how-to-optimize-the-code/63732)._
