GithubHelp home page GithubHelp logo

prodigalities's Introduction

This repository hosts code for my "Serendipitous Prodigalities" blog.

#1. A little theory and a small case study on optimizing code for run-time efficiency.#

We will analyse code developpement for a language identification program using ngrams. The focus will solely be on run-time efficiency, not language classification accuracy.

##1.1. Using domain-specific knowledge UTF-8, UTF-32 and custom storage for n-grams representations.##

###1.1.1. First implementations###

cf. ngrams_counter_[utf8|utf32|bitfields].hxx

###1.1.2. Profiler-driven tuning###

Using pref, ad cache/callgrind cf. BASIC_UTF8_CMP, CUSTOM_ARRAY_ROTATE

##1.2. Using domain-specific knowledge : standard unordered_map and custom perfect hashing for n-gram matching.## TODO, using gperf, llvm switch statement

##1.3. Parallelization granularity : processes/threads, intra/inter files## TODO, using GNU parallel and OpenMP (+ CPU affinity) or std::threads

prodigalities's People

Contributors

scientific-coder avatar

Stargazers

 avatar

Watchers

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