Opened 10 years ago

Closed 10 years ago

#7065 closed Feature Requests (fixed)

Optimize conversion to and from boost and std array

Reported by: Antony Polukhin Owned by: Antony Polukhin
Milestone: To Be Determined Component: lexical_cast
Version: Boost 1.50.0 Severity: Optimization
Keywords: array lexical_cast optimization Cc:

Description

Those conversions shall not allocate heap memory.

Usage example:

    typedef boost::array<char, 50> buf_type;
    buf_type res = boost::lexical_cast<buf_type>(number_var);
    // use `res.begin()` as a char*

Change History (6)

comment:1 by Antony Polukhin, 10 years ago

(In [79230]) Optimizations for boost and std array (refs #7065)

comment:2 by Antony Polukhin, 10 years ago

(In [79249]) Documentation update: documented optimizations for boost and std arrays (refs #7065)

comment:3 by Antony Polukhin, 10 years ago

(In [79266]) Updated documentaion, fixed bug and refactored tests (refs #7065)

comment:4 by Antony Polukhin, 10 years ago

(In [79297]) Updated documentaion and performance test (now we have info about conversion speed to and from array<>, refs #7065)

comment:5 by Antony Polukhin, 10 years ago

(In [79363]) Fix tab in documentation (refs #7065)

comment:6 by Antony Polukhin, 10 years ago

Resolution: fixed
Status: newclosed

(In [79364]) Merge from trunk (now lexical_cast has optimized conversions to and from array<>, fixes #7065)

Note: See TracTickets for help on using tickets.