Click here to Skip to main content

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy.
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 and please don't post ads.

Technical discussions are welcome, but if you need specific help please use the programming forums.


 
GeneralRe: WinRT [C++/Cx to C#] performance PinmemberSuper Lloyd12-Feb-13 2:38 
GeneralRe: WinRT [C++/Cx to C#] performance PinmemberRama Krishna Vavilala12-Feb-13 3:04 
GeneralRe: WinRT [C++/Cx to C#] performance PinsitebuilderNish Sivakumar12-Feb-13 3:18 
GeneralRe: WinRT [C++/Cx to C#] performance PinmemberBillWoodruff14-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 PinmemberSuper Lloyd14-Feb-13 22:21 
General"Bing is a great product" PinmemberEdo Tzumer12-Feb-13 1:22 
GeneralRe: "Bing is a great product" PinmemberNemanja Trifunovic12-Feb-13 1:33 
QuestionRe: "Bing is a great product" PinmemberMario Majčica12-Feb-13 1:39 
AnswerRe: "Bing is a great product" PinmemberS Houghtelin12-Feb-13 1:45 
JokeRe: "Bing is a great product" PinmemberMario Majčica12-Feb-13 1:47 

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
Web04 | 2.8.140415.2 | Last Updated 20 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid