Modify

Ticket #5417 (closed Patches: fixed)

Opened 3 years ago

Last modified 2 years ago

Optimizations on casts to integral types

Reported by: Antony Polukhin <antoshkka@…> Owned by: apolukhin
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

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

Change History

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

Patch for trunk version of lexical_cast (for revision 70966)

comment:1 Changed 3 years ago by apolukhin

  • Owner changed from nasonov to apolukhin
  • Status changed from new to assigned

comment:2 Changed 3 years ago by apolukhin

  • Status changed from assigned to closed
  • Resolution set to fixed

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

Last edited 3 years ago by apolukhin (previous) (diff)

comment:3 Changed 3 years ago by apolukhin

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:4 Changed 3 years ago by apolukhin

  • Status changed from reopened to closed
  • Resolution set to fixed

(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 2 years ago by anonymous

export EXTERNAL_STORAGE /mnt_data

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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.