4 ms·
> Probably some smart SIMD lowercase function could help here but I don't think any language is going to offer that out of the box. No, but at least you have d
by dahfizz 4y ago
> Probably some smart SIMD lowercase function could help here but I don't think any language is going to offer that out of the box.
No, but at least you have direct access to the intrinsics in C. To get vectorization in Go, you have to implement it in C and link that into your Go program.
- morelisp 4y ago> To get vectorization in Go, you have to implement it in C and link that into your Go program. Go has an assembler which does not require implementing anything in C (though the assembler uses a more C-style syntax), nor critically does it require using CGo linkage. It's used to implement many hot paths in the stdlib.
- throwaway894345 4y agoTypically you would just implement vectorization in assembly in the Go case.