• Yorick Peterse's avatar
    Use BufReader when reading bytecode from files · d80c4c30
    Yorick Peterse authored
    Using a 32KB buffer this allows us to drastically reduce the time spent
    parsing bytecode files. Consider the following program:
    
        import std::ansi
        import std::ffi
        import std::fs
        import std::mirror
        import std::stdio::stderr
        import std::stdio::stdin
        import std::stdio::stdout
        import std::time
    
        stdout.print('hello world')
    
    Prior to these changes, running this program (ignoring the compilation
    itme) takes around 240 milliseconds. With these changes, this is reduced
    to 20 milliseconds: a 12x improvement.
    d80c4c30
Name
Last commit
Last update
.gitlab Loading commit data...
compiler Loading commit data...
runtime Loading commit data...
scripts Loading commit data...
vm Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
CHANGELOG.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
VERSION Loading commit data...
appveyor.yml Loading commit data...
macstadium.png Loading commit data...