Giter Club home page Giter Club logo

cpp-intersection's Introduction

CPP-Intersection

Stand alone intersection(or join) program for large scale data

Background

Intersection of two set is very simple. Yet when the data scale is large, things are quite different. Some people tend to use hadoop to handle such tasks. However, hadoop or mapreduce is not designed to do intersecting because there is nothing to do with reduce. Holding large scale data in memory will often cause OOM exception. Further more, Java consumes much more memories than C++ when building maps, almost 3~4 times, resulting in worse performace.

Introduction

This is a C++ project to calculate intersection of two data sets. It`s fast with multi-threads and consumes no more extra memory. For two sets with 100 million keys each (each key is of 8 bytes), it takse 35s for building map, and another 35s for intersection on my machine, which takes up to 9GB memory to do the test.

Usage

  • Use Scons to build project.
  • Use liblog4cplus to log.

cpp-intersection's People

Contributors

lanpay-lulu avatar

Watchers

 avatar  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.