# Performance comparison of a custom gcd() function in Julia, C, and Rust

**URL:** <https://discourse.julialang.org/t/performance-comparison-of-a-custom-gcd-function-in-julia-c-and-rust/121665>\
**Category:** Performance\
**Tags:** question, ffi\
**Created:** [October 23, 2024, 6:27pm UTC](https://discourse.julialang.org/t/performance-comparison-of-a-custom-gcd-function-in-julia-c-and-rust/121665 "2024-10-23T18:27:00Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![sgaure](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sgaure/32/14779_2.png) [@sgaure](https://discourse.julialang.org/u/sgaure)\
**Post date:** [October 23, 2024, 7:09pm UTC](https://discourse.julialang.org/t/performance-comparison-of-a-custom-gcd-function-in-julia-c-and-rust/121665/4 "2024-10-23T19:09:39Z")

</div>

There have been numerous discussions about this particular rewriting in julia. Here is one of them: [Tail-call recursion](https://discourse.julialang.org/t/tail-call-recursion/87847)

---

_[View the full topic](https://discourse.julialang.org/t/performance-comparison-of-a-custom-gcd-function-in-julia-c-and-rust/121665)._
