HomePhabricator

Prevector Quick Destruct

Description

Prevector Quick Destruct

Summary:

  • Add prevector destructor benchmark
  • Only call clear on prevector if it isn't trivially destructible and don't loop in clear

This is a backport of Core PR9505

Test Plan:

make
./src/bench/bench_bitcoin

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Subscribers: jasonbcox, teamcity

Differential Revision: https://reviews.bitcoinabc.org/D1843

Details

Provenance
Jeremy Rubin <jeremy.l.rubin@gmail.com>Authored on Jan 10 2017, 19:49
deadalnixCommitted on Sep 30 2018, 19:32
deadalnixPushed on Sep 30 2018, 19:32
Reviewer
Restricted Project
Differential Revision
D1843: Prevector Quick Destruct
Parents
rABC92d96043ced5: bench: use std::chrono rather than gettimeofday
Branches
Unknown
Tags
Unknown