On Tuesday, 25 November 2025 at 22:19:19 UTC, MrJay wrote:
when you are comparing two languages you have to be careful to not accidentally add accidental bottlenecks, where you are not comparing the bottle neck rather than the languages

really didnt like how I explained this to restate it

profiling is quite difficult, and must be done with care because its very easy to profile a bottleneck rather than the application or code it self.

also added information its this line

```d
d[tuple(i, j)] = int(option); // off: 0, on: 1
```
this is being done as a Associative array rather than a normal array you could already improve performance by just using an array of bytes or potentially better yet just singular bits for each light and using boolean algebra for on, off, and toggle.

even as an array of bytes its 1mb
as bits its 125000 bytes
or 125 kilobytes
and every instruction would be much faster as well, and every lookup should also be faster

Reply via email to