GithubHelp home page GithubHelp logo

billionwoes's Introduction

Billion Woes

One man's weekend project to scratch a very random programming itch.

What is it?

Inspired by others' attempts at the 1 Billion Row Challenge, I thought I'd have a stab at it... in C...despite not being much of a C developer.

Anyway...

It works.

It's not the fastest by a sizable margin... but it works.

On my gaming rig it does it in ~200 seconds.

(No idea what that translates to on an officially sanctioned machine.)

Why isn't it the fastest?

No parallelism. Single core all the way.

Why isn't it the slowest?

Single pass parsing and a simple arena bump style allocator for memory management.

It swaps the cost of hashtables for the cost of a directed graph. Whether this is a net win or loss will come back to the architecture its running on.

Will it be better in the future?

Maybe.

The current approach wasn't built to be thread safe so it may involve some drastic surgery.

My allocator doesn't do any form of bucketing so any arena growth requires a malloc and a full mem copy from the older smaller instance. Plus pointers don't survive between resizes so coding style takes a hit.

billionwoes's People

Contributors

lzcd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.