Menu

yolow64 0.2: a new decode kernel that beats Turbo-Base64 under full validation
πŸ“°

yolow64 0.2: a new decode kernel that beats Turbo-Base64 under full validation

DEV Community: rust·ゴエンチョウ·about 13 hours ago
#eZ59kQRm
#devtorust#devto#dev#validation#yolow64
Reading 0:00
15s threshold

yolow64 0.2: a new decode kernel that beats Turbo-Base64 under full validation

yolow64 is the Base64 codec extracted from PageSift , published as 0.1 on Nov 9. Version 0.2 (plus a docs-only 0.2.1) is out, and the headline is decode.

Decode: new kernel

The bulk decoder was replaced with a four-block AVX2 hash loop using clean-room translation/validation tables, speculative validation, and per-quad constants held in registers. Full validation is retained for every block β€” nothing was traded away for speed. BMI2 pext tails handle padded 24- and 172-character inputs, and exact-length no-padding inputs of 16/32/64/128 characters bypass the general dispatch entirely.

The comparison that matters is against Turbo-Base64 built with FULLCHECK=1 . Turbo's default build checks only the first of four blocks in its hot loop; comparing against that would be comparing against 25% validation.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.