# \#performance

**URL:** https://racket.discourse.group/tag/performance/32.md

[Latest](https://racket.discourse.group/latest.md) · [Categories](https://racket.discourse.group/categories.md) · [Tags](https://racket.discourse.group/tags.md)

---

## [Why are struct constructors accessed through a parameter 10-20% faster than using the constructor directly?](https://racket.discourse.group/t/why-are-struct-constructors-accessed-through-a-parameter-10-20-faster-than-using-the-constructor-directly/3364)

<div class="topic-metadata">

**Author:** [@780nm](https://racket.discourse.group/u/780nm)\
**Replies:** 7\
**Last updated:** [November 28, 2024, 12:32am UTC](https://racket.discourse.group/t/why-are-struct-constructors-accessed-through-a-parameter-10-20-faster-than-using-the-constructor-directly/3364 "2024-11-28T00:32:05Z")

</div>

Hi! I was looking at the performance impacts of parameters for use in a language project and ran into some odd performance characteristics: accessing struct constructors through a parameterize-introduced binding appears…

---

## [Implementing a 2d point with pairs vs. flvectors vs. structs vs. complex, a primitive benchmark](https://racket.discourse.group/t/implementing-a-2d-point-with-pairs-vs-flvectors-vs-structs-vs-complex-a-primitive-benchmark/3274)

<div class="topic-metadata">

**Author:** [@williewillus](https://racket.discourse.group/u/williewillus)\
**Replies:** 16\
**Last updated:** [November 20, 2024, 2:47am UTC](https://racket.discourse.group/t/implementing-a-2d-point-with-pairs-vs-flvectors-vs-structs-vs-complex-a-primitive-benchmark/3274 "2024-11-20T02:47:57Z")

</div>

Recently had a thought experiment since I'm making a 2d game, which is heavy on numerical manipulation of 2d points. \[I'm using Chez Scheme for the game, but that's not too relevant to this post\]. The question was, the…

---

## [Performance comparison between (append (reverse a) b)) and (foldl cons b a))](https://racket.discourse.group/t/performance-comparison-between-append-reverse-a-b-and-foldl-cons-b-a/2903)

<div class="topic-metadata">

**Author:** [@NeraSnow](https://racket.discourse.group/u/NeraSnow)\
**Replies:** 7\
**Last updated:** [May 6, 2024, 2:40pm UTC](https://racket.discourse.group/t/performance-comparison-between-append-reverse-a-b-and-foldl-cons-b-a/2903 "2024-05-06T14:40:23Z")

</div>

I have the following code example. I am wondering if method1 is slower than method2? I want to write a benchmark program, but I don't have any prior experience in this. #lang racket (define (method1 a b) (append (rev…

---

## [Performance of Racket Pict Comparison](https://racket.discourse.group/t/performance-of-racket-pict-comparison/2735)

<div class="topic-metadata">

**Author:** [@benknoble](https://racket.discourse.group/u/benknoble)\
**Replies:** 0\
**Last updated:** [February 24, 2024, 2:27am UTC](https://racket.discourse.group/t/performance-of-racket-pict-comparison/2735 "2024-02-24T02:27:59Z")

</div>

https://benknoble.github.io/blog/2024/02/15/benchmarking-pict-equality/ I'm sharing this here partly for general discussion and partly because folks might be interested. I don't entirely understand the results, so I'm o…

---

## [Why does Typed Racket run faster when \`#:no-optimize\`?](https://racket.discourse.group/t/why-does-typed-racket-run-faster-when-no-optimize/2453)

<div class="topic-metadata">

**Author:** [@neteroster](https://racket.discourse.group/u/neteroster)\
**Replies:** 3\
**Last updated:** [November 3, 2023, 2:52pm UTC](https://racket.discourse.group/t/why-does-typed-racket-run-faster-when-no-optimize/2453 "2023-11-03T14:52:49Z")

</div>

Hello everyone, I am a beginner who has just started learning Racket. I am conducting some experiments with Typed Racket, and I have written the following code: #lang typed/racket (: benchmark-vector (-\> Integer Intege…

---

## [Why is plot slower with unicode symbols in ticks?](https://racket.discourse.group/t/why-is-plot-slower-with-unicode-symbols-in-ticks/1611)

<div class="topic-metadata">

**Author:** [@benknoble](https://racket.discourse.group/u/benknoble)\
**Replies:** 25\
**Last updated:** [January 10, 2023, 3:44pm UTC](https://racket.discourse.group/t/why-is-plot-slower-with-unicode-symbols-in-ticks/1611 "2023-01-10T15:44:52Z")

</div>

I have some plot code for dice statistics (unfinished). It seems from some observations that using unicode characters in the y-axis ticks makes the plot nearly unresponsive. Conversely, using ASCII-only characters has no…

---

## [Racket set performance](https://racket.discourse.group/t/racket-set-performance/479)

<div class="topic-metadata">

**Author:** [@badkins](https://racket.discourse.group/u/badkins)\
**Replies:** 11\
**Last updated:** [December 27, 2021, 8:32pm UTC](https://racket.discourse.group/t/racket-set-performance/479 "2021-12-27T20:32:02Z")

</div>

I ported a Python version of Advent of Code Day 25 to this Racket version , and I was surprised by what appears to be the relatively poor performance of Racket's set implementation. The Python version runs in about 1.5 …

---

## [Performance optimizations (by Typed Racket, or otherwise)](https://racket.discourse.group/t/performance-optimizations-by-typed-racket-or-otherwise/350)

<div class="topic-metadata">

**Author:** [@sschwarzer](https://racket.discourse.group/u/sschwarzer)\
**Replies:** 2\
**Last updated:** [December 6, 2021, 3:32pm UTC](https://racket.discourse.group/t/performance-optimizations-by-typed-racket-or-otherwise/350 "2021-12-06T15:32:06Z")

</div>

In the Racket Slack someone asked whether the optimizations by Typed Racket can be done from standard Racket. The answer was "yes", since Typed Racket is just a library. :slight\_smile: This made me curious. What kind of…
