libera/#sbcl - IRC Chatlog
Search
8:57:29
jdz
stassats: I recently came across an article about accelerating Base64 encoding (and decoding in linked material): https://richardstartin.github.io/posts/base64-encoding. I have no practical experience with SIMD but my understanding from looking at OpenJDK sources is that it does input checking while decoding Base64 (around here:
8:57:29
jdz
https://github.com/openjdk/jdk/blob/0b34fc911921620a7931355aeda2cbdc3a31ead5/src/hotspot/cpu/x86/stubGenerator_x86_64.cpp#L2240). Maybe this helps with what you're doing.
11:03:09
stassats`
so now that i can't do read() into a string, why optimize for :latin1 at all, at that rate i can have a fastpath for ascii utf-8 strings
16:38:03
Gleefre
karlosz: Thanks for reply... Hm, I think it should be possible to mmap the address space (not sure, but I heard that native libraries are allowed to do that). How could I check that?