Click here to Skip to main content
13,195,170 members (71,432 online)

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

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
peterchen12-Feb-13 2:36
memberpeterchen12-Feb-13 2:36 
GeneralRe: Darwin came a-calling Pin
DeathByChocolate12-Feb-13 3:35
memberDeathByChocolate12-Feb-13 3:35 
GeneralRe: Darwin came a-calling Pin
djj5512-Feb-13 3:07
memberdjj5512-Feb-13 3:07 
GeneralRe: Darwin came a-calling Pin
Testing 1 2 ... uh... 7?12-Feb-13 4:17
memberTesting 1 2 ... uh... 7?12-Feb-13 4:17 
GeneralRe: Darwin came a-calling Pin
ryanb3112-Feb-13 4:36
memberryanb3112-Feb-13 4:36 
GeneralRe: Darwin came a-calling Pin
Chris Quinn12-Feb-13 4:18
memberChris Quinn12-Feb-13 4:18 
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 
GeneralRe: "Bing is a great product" Pin
Keith Barrow12-Feb-13 7:22
mentorKeith Barrow12-Feb-13 7:22 
GeneralRe: "Bing is a great product" Pin
Edo Tzumer12-Feb-13 2:21
memberEdo Tzumer12-Feb-13 2:21 
GeneralRe: "Bing is a great product" Pin
peterchen12-Feb-13 2:39
memberpeterchen12-Feb-13 2:39 
GeneralRe: "Bing is a great product" Pin
Edo Tzumer12-Feb-13 2:49
memberEdo Tzumer12-Feb-13 2:49 
GeneralRe: "Bing is a great product" Pin
Mario Majčica12-Feb-13 3:31
memberMario Majčica12-Feb-13 3:31 
GeneralRe: "Bing is a great product" Pin
PIEBALDconsult12-Feb-13 3:53
memberPIEBALDconsult12-Feb-13 3:53 
GeneralRe: "Bing is a great product" Pin
viaducting12-Feb-13 4:02
memberviaducting12-Feb-13 4:02 
GeneralRe: "Bing is a great product" Pin
Walt Fair, Jr.12-Feb-13 9:51
subeditorWalt Fair, Jr.12-Feb-13 9:51 
GeneralFacebook Pin
Pete O'Hanlon11-Feb-13 23:56
protectorPete O'Hanlon11-Feb-13 23:56 
GeneralRe: Facebook Pin
Rutvik Dave12-Feb-13 0:00
memberRutvik Dave12-Feb-13 0:00 
GeneralRe: Facebook Pin
S Houghtelin12-Feb-13 0:33
memberS Houghtelin12-Feb-13 0:33 
GeneralRe: Facebook Pin
Mark_Wallace12-Feb-13 1:09
memberMark_Wallace12-Feb-13 1:09 
GeneralRe: Facebook Pin
Nagy Vilmos12-Feb-13 1:42
memberNagy Vilmos12-Feb-13 1:42 
GeneralRe: Facebook Pin
Pete O'Hanlon12-Feb-13 2:09
protectorPete O'Hanlon12-Feb-13 2:09 
GeneralRe: Facebook Pin
Nagy Vilmos12-Feb-13 2:19
memberNagy Vilmos12-Feb-13 2:19 
GeneralGet Off the Road! Pin
Nagy Vilmos11-Feb-13 23:34
memberNagy Vilmos11-Feb-13 23:34 
GeneralRe: Get Off the Road! Pin
Dalek Dave11-Feb-13 23:43
memberDalek Dave11-Feb-13 23:43 
GeneralRe: Get Off the Road! Pin
_Maxxx_12-Feb-13 0:28
member_Maxxx_12-Feb-13 0:28 
GeneralRe: Get Off the Road! Pin
Rage12-Feb-13 0:28
memberRage12-Feb-13 0:28 

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 |
Web04 | 2.8.171019.1 | Last Updated 19 Oct 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid