Modify

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#5417 closed Patches (fixed)

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 (1)

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

Download all attachments as: .zip

Change History (6)

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

Patch for trunk version of lexical_cast (for revision 70966)

comment:1 Changed 6 years ago by apolukhin

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

comment:2 Changed 6 years ago by apolukhin

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

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

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

comment:3 Changed 6 years ago by apolukhin

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:4 Changed 6 years ago by apolukhin

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

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

export EXTERNAL_STORAGE /mnt_data

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

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain apolukhin.
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.