Dev.to daily challenge Duplicate Encoder

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Thu Jun 25 15:51:16 UTC 2020


On Wednesday, 24 June 2020 at 19:13:39 UTC, Vladimir Panteleev 
wrote:
> On Wednesday, 24 June 2020 at 17:21:34 UTC, Jesse Phillips 
> wrote:
>> 2. 
>> https://github.com/JesseKPhillips/devto-challenge259-dupencoder
>
> Replacing the type with `int[256]` results in roughly a 2x 
> speedup.
>
> I think it might be possible to use an AVX (256-bit) register 
> to hold state to avoid going to the RAM at all.
>
> I also don't understand the choices that led to the 
> duplicateEncode_pointer implementation. This version is much 
> faster:

I've added those changes and included axis labels

https://github.com/JesseKPhillips/devto-challenge259-dupencoder


More information about the Digitalmars-d mailing list