Click here to Skip to main content
11,640,907 members (62,169 online)

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy except programming questions.

Technical discussions are encouraged, but click here to ask your programming question.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: Darwin came a-calling Pin
Rajesh R Subramanian12-Feb-13 4:50
memberRajesh R Subramanian12-Feb-13 4:50 
GeneralRe: Darwin came a-calling Pin
Mark_Wallace12-Feb-13 19:49
memberMark_Wallace12-Feb-13 19:49 
NewsWinRT [C++/Cx to C#] performance Pin
Super Lloyd12-Feb-13 1:56
memberSuper Lloyd12-Feb-13 1:56 
GeneralRe: WinRT [C++/Cx to C#] performance Pin
Dan Neely12-Feb-13 2:23
memberDan Neely12-Feb-13 2:23 
GeneralRe: WinRT [C++/Cx to C#] performance Pin
Super Lloyd12-Feb-13 2:38
memberSuper Lloyd12-Feb-13 2:38 
GeneralRe: WinRT [C++/Cx to C#] performance Pin
Rama Krishna Vavilala12-Feb-13 3:04
memberRama Krishna Vavilala12-Feb-13 3:04 
GeneralRe: WinRT [C++/Cx to C#] performance Pin
Nish Sivakumar12-Feb-13 3:18
sitebuilderNish Sivakumar12-Feb-13 3:18 
GeneralRe: WinRT [C++/Cx to C#] performance Pin
BillWoodruff14-Feb-13 20:04
memberBillWoodruff14-Feb-13 20:04 
Super Lloyd wrote:
In Sample1 I update 10.000 points in C#. It used to be a C++/CX IList/IVector.

Now I'm doing it in C# with pointers.

Updating 10K points in C# through C++/Cx took about 20.000 ticks

Updating it through pure C# (and pointers ) only took about 3.000 ticks.

Further tweaks were caching the pointer value (there was a method call to get the pointer) and avoid some casting reduced the time to 1.300 ticks.


Hi Super LLoyd,

Assuming no structural problems in your code doing this either way: I'm curious what inference you might make from this observation: better to code in C# and use pointers ?

thanks, Bill
“Thus on many occasions man divides himself into two persons, one who tries to fool the other, while a third, who in fact is the same as the other two, is filled with wonder at this confusion. Thinking becomes dramatic, and acts out the most complicated plots within itself, and, spectator, again, and again, becomes: actor.” From a book by the Danish writer, Paul Moller, which was a favorite of Niels Bohr.

GeneralRe: WinRT [C++/Cx to C#] performance Pin
Super Lloyd14-Feb-13 22:21
memberSuper Lloyd14-Feb-13 22:21 
General"Bing is a great product" Pin
Edo Tzumer12-Feb-13 1:22
memberEdo Tzumer12-Feb-13 1:22 
GeneralRe: "Bing is a great product" Pin
Nemanja Trifunovic12-Feb-13 1:33
memberNemanja Trifunovic12-Feb-13 1:33 
QuestionRe: "Bing is a great product" Pin
Mario Majčica12-Feb-13 1:39
memberMario Majčica12-Feb-13 1:39 
AnswerRe: "Bing is a great product" Pin
S Houghtelin12-Feb-13 1:45
memberS Houghtelin12-Feb-13 1:45 
JokeRe: "Bing is a great product" Pin
Mario Majčica12-Feb-13 1:47
memberMario Majčica12-Feb-13 1:47 
GeneralRe: "Bing is a great product" Pin
S Houghtelin12-Feb-13 1:52
memberS Houghtelin12-Feb-13 1:52 
GeneralRe: "Bing is a great product" Pin
Mario Majčica12-Feb-13 1:59
memberMario Majčica12-Feb-13 1:59 
GeneralRe: "Bing is a great product" Pin
S Houghtelin12-Feb-13 2:14
memberS Houghtelin12-Feb-13 2:14 
AnswerRe: "Bing is a great product" Pin
Mario Majčica12-Feb-13 3:27
memberMario Majčica12-Feb-13 3:27 
GeneralRe: "Bing is a great product" Pin
Mark_Wallace12-Feb-13 19:55
memberMark_Wallace12-Feb-13 19:55 
AnswerRe: "Bing is a great product" Pin
Maximilien12-Feb-13 1:46
memberMaximilien12-Feb-13 1:46 
AnswerRe: "Bing is a great product" Pin
Keith Barrow12-Feb-13 1:56
mentorKeith Barrow12-Feb-13 1:56 
GeneralRe: "Bing is a great product" Pin
Matthew Faithfull12-Feb-13 2:17
memberMatthew Faithfull12-Feb-13 2:17 
GeneralRe: "Bing is a great product" Pin
Keith Barrow12-Feb-13 2:23
mentorKeith Barrow12-Feb-13 2:23 
GeneralRe: "Bing is a great product" Pin
Matthew Faithfull12-Feb-13 2:30
memberMatthew Faithfull12-Feb-13 2:30 
GeneralRe: "Bing is a great product" Pin
MikoTheTerrible12-Feb-13 6:43
memberMikoTheTerrible12-Feb-13 6:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web01 | 2.8.150731.1 | Last Updated 1 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid