GithubHelp home page GithubHelp logo

looktable's Introduction

无锁查找表的C++简单实现

image.png

需求

设计一个性能优化的查找表looktable. 问题: 交易程序下单的时候,交易所会返回int64_t order_id, order_id在一天内是时间递增的, 大部分的order生命周期都是短暂,如果order生命结束,对它就失去兴趣了,可以从looktable删掉。 要求:

  1. 只需要满足一天的需求,order_id范围100万级别。
  2. insert, erase不要频繁分配内存(比如malloc, new)
  3. 至少提供一个模板参数T, T可能保存order的相关信息。

looktable's People

Contributors

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