Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by gpderetta

3 years ago

std::deque, although it would be nice to use an implementation where you can control the block size.

1 comment

gpderetta

Reply

Const-me  3 years ago

Here’s a simple non-standard allocator for C++ I used a few times in the past: https://github.com/Const-me/CollectionMicrobench/blob/master...

The block size is controlled with a template argument, the number must be a compile-time constant.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities