Modify

Opened 7 years ago

Closed 7 years ago

Last modified 6 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@…> 7 years ago.
Patch for trunk version of lexical_cast (for revision 70966)

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by Antony Polukhin <antoshkka@…>

Attachment: lexical_cast.hpp.diff added

Patch for trunk version of lexical_cast (for revision 70966)

comment:1 Changed 7 years ago by Antony Polukhin

Owner: changed from nasonov to Antony Polukhin
Status: newassigned

comment:2 Changed 7 years ago by Antony Polukhin

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 7 years ago by Antony Polukhin (previous) (diff)

comment:3 Changed 7 years ago by Antony Polukhin

Resolution: fixed
Status: closedreopened

comment:4 Changed 7 years ago by Antony Polukhin

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 Changed 6 years ago by anonymous

export EXTERNAL_STORAGE /mnt_data

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Antony Polukhin.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.