Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#5417 closed Patches (fixed)

Optimizations on casts to integral types

Reported by: Antony Polukhin <antoshkka@…> Owned by: Antony Polukhin
Milestone: To Be Determined Component: lexical_cast
Version: Boost Development Trunk Severity: Optimization
Keywords: Cc:

Description

Patch to Boost Lexical Cast library, that optimizes casts to integral types. It gives performance boost about 40 times(and beats in performance Spirit library, when compiling with defined BOOST_LEXICAL_CAST_ASSUME_C_LOCALE), reduces memory usage and does not change the behavior of library.

Patch was successfully tested on Intel 11.1.072, g++-4.4.5, VC++9 compilers. All existaing tests for Boost Lexical Cast library were passed successfully.

Attachments (1)

lexical_cast.hpp.diff (7.4 KB ) - added by Antony Polukhin <antoshkka@…> 12 years ago.
Patch for trunk version of lexical_cast (for revision 70966)

Download all attachments as: .zip

Change History (6)

by Antony Polukhin <antoshkka@…>, 12 years ago

Attachment: lexical_cast.hpp.diff added

Patch for trunk version of lexical_cast (for revision 70966)

comment:1 by Antony Polukhin, 11 years ago

Owner: changed from nasonov to Antony Polukhin
Status: newassigned

comment:2 by Antony Polukhin, 11 years ago

Resolution: fixed
Status: assignedclosed

(In [71958]) Fixes #5350. Fixes #4397 More tests (for conversions to float types, for conversions of negative values to unsigned integers)

Last edited 11 years ago by Antony Polukhin (previous) (diff)

comment:3 by Antony Polukhin, 11 years ago

Resolution: fixed
Status: closedreopened

comment:4 by Antony Polukhin, 11 years ago

Resolution: fixed
Status: reopenedclosed

(In [72056]) Fixes #5417. Much better performance on casts to integral types. Adds more tests for overflow detection. Workaround for bugs of vc8 (lexical_cast_vc8_bug_test.cpp now passes) Fixes some inspection errors.

comment:5 by anonymous, 11 years ago

export EXTERNAL_STORAGE /mnt_data

(http://www.wvweightloss.com/ does not work with the sdcard link)

Note: See TracTickets for help on using tickets.