Remix.run Logo
▲ CAP_NET_ADMIN 3 hours ago

Vectorized base64 can reach speeds in the proximity of memory copy.

I've easily reached a point where it was worth it to go AVX route in my "for funsies" game that I'm making.

▲ 2 hours ago | parent | next [-]
[deleted]
▲CAP_NET_ADMIN 3 hours ago | parent | prev [-]

Just checked, the scalar version reaches around 1-2GB/s when decoding, optimized it gets to 4GB/s, AVX-512 VBMI version reaches 40-55GB/s.

▲bullen 3 hours ago | parent [-]

Interesting, what game are you making?

▲CAP_NET_ADMIN 3 hours ago | parent [-]

Large scale tower/base defense with time rewind mechanics and user-generated structure templates.

▲bullen an hour ago | parent [-]

So where do you need 40GB/s of base64?