Click here to Skip to main content
12,064,498 members (53,666 online)

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
NewsRewriting in C++ for Fun, Speed and Masochism Pin
Terrence Dorsey10-Oct-12 12:33
staffTerrence Dorsey10-Oct-12 12:33 
While the original Ruby script took maybe 2 hours to write, my straight port to C++ took more than 10! Most of this time was spent navigating the API of libjpeg, fumbling with pointers and buffer arithmetic, and hunting down type casting errors that subtly caused inaccurate results. However, check out the speed gains...
That’s a speed up of more than 50x. And ten years worth of gray hair.
GeneralRe: Rewriting in C++ for Fun, Speed and Masochism Pin
Nemanja Trifunovic11-Oct-12 3:54
memberNemanja Trifunovic11-Oct-12 3:54 
GeneralRe: Rewriting in C++ for Fun, Speed and Masochism Pin
ed welch11-Oct-12 11:35
membered welch11-Oct-12 11:35 
GeneralRe: Rewriting in C++ for Fun, Speed and Masochism Pin
harold aptroot12-Oct-12 13:18
memberharold aptroot12-Oct-12 13:18 
GeneralRe: Rewriting in C++ for Fun, Speed and Masochism Pin
ed welch13-Oct-12 3:45
membered welch13-Oct-12 3:45 
GeneralRe: Rewriting in C++ for Fun, Speed and Masochism Pin
harold aptroot13-Oct-12 3:50
memberharold aptroot13-Oct-12 3:50 
GeneralRe: Rewriting in C++ for Fun, Speed and Masochism Pin
ed welch13-Oct-12 6:06
membered welch13-Oct-12 6:06 
GeneralRe: Rewriting in C++ for Fun, Speed and Masochism Pin
harold aptroot13-Oct-12 6:17
memberharold aptroot13-Oct-12 6:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.160204.4 | Last Updated 6 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid