Project

General

Profile

Feature #1739

Improve PUP performance of std::vector<T> where T is PUPbytes

Added by Sam White 12 days ago. Updated 12 days ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Migration
Target version:
Start date:
11/07/2017
Due date:
% Done:

0%


Description

The following commit improved performance of std::vector<T> where std::is_arithmetic<T> is true. This should be extended to cover all PUPbytes types: https://charm.cs.illinois.edu/gerrit/#/c/3177/

History

#1 Updated by Sam White 12 days ago

  • Subject changed from Improve performance of std::vector<T> where T is PUPbytes to Improve PUP performance of std::vector<T> where T is PUPbytes

#2 Updated by Jim Phillips 12 days ago

Why std::is_arithmetic<> rather than the more general std::is_trivially_copyable<>?

#3 Updated by Sam White 12 days ago

That would work, but we'd need to add a configure-time test for support of it since not all C++11 compilers actually support it: https://stackoverflow.com/questions/25123458/is-trivially-copyable-is-not-a-member-of-std

Also available in: Atom PDF