Issue 14384 - speed up Base64 decoding
Summary: speed up Base64 decoding
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-31 19:31 UTC by Martin Nowak
Modified: 2024-12-01 16:24 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Martin Nowak 2015-03-31 19:31:28 UTC
We're slower than Rubinius here :(.

https://github.com/kostya/benchmarks/tree/a2d10ddfeea208309fd53d666a533445a97ae264/base64

A promising attempt would be to replace the translation table with explicit code and to process strings in register sized chunks instead of byte-wise.
Comment 1 weaselcat 2015-04-01 02:19:46 UTC
dmd* is slow, gdc is faster than every other implementation in the benchmark.

http://forum.dlang.org/thread/kdxidecfhivdmonazrra@forum.dlang.org?page=2#post-kgolgxdoptsikvtxfrrp:40forum.dlang.org

is this bug still valid?
Comment 2 Martin Nowak 2015-04-05 23:27:50 UTC
Sure, the 2 things I named are still valid ideas to speed up the function.
Comment 3 dlangBugzillaToGithub 2024-12-01 16:24:14 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/9657

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB