Click here to Skip to main content
15,900,816 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Monster Theory Pin
BernardIE531724-Dec-21 7:31
BernardIE531724-Dec-21 7:31 
GeneralRe: Monster Theory Pin
honey the codewitch24-Dec-21 11:00
mvahoney the codewitch24-Dec-21 11:00 
GeneralRe: Monster Theory Pin
Super Lloyd23-Dec-21 22:54
Super Lloyd23-Dec-21 22:54 
GeneralRe: Monster Theory Pin
RickZeeland23-Dec-21 23:58
mveRickZeeland23-Dec-21 23:58 
GeneralRe: Monster Theory Pin
oofalladeez34324-Dec-21 5:44
professionaloofalladeez34324-Dec-21 5:44 
GeneralRe: Monster Theory Pin
englebart25-Dec-21 15:05
professionalenglebart25-Dec-21 15:05 
Generalperformance idle musing about WinUI Pin
Super Lloyd23-Dec-21 20:43
Super Lloyd23-Dec-21 20:43 
GeneralRe: performance idle musing about WinUI Pin
honey the codewitch23-Dec-21 21:02
mvahoney the codewitch23-Dec-21 21:02 
It's possible that they're using the same strategy with WinUI that they did with the framework in general - porting it to .NET iteratively.

I would say algorithmically speaking, you're looking at a predictable, and small amount of overhead for UI calls. Your basic performance profile will be roughly the same, + I don't know, 10% overhead in terms of time to execute?

It won't be bad at all except for processing window messages and painting. Those are your critical codepaths. Unfortunately, they are central to the UI. The more you have to do there, the more burden you're putting on the thunking/marshalling layer.

That said, the *way* you map your P/Invoke calls significantly impacts marshalling performance. There are some tricks you can do with structs to make the calls a bit faster. Basically a struct is constructed in memory the way it's laid out using the StructLayout/FieldOffset? attributes, so it already fits the "binary footprint" necessary for the p/invoke call. In other cases, it's quicker to marshal by hand. Either way, there are ways to reduce the overhead in critical codepaths.
Real programmers use butterflies

GeneralRe: performance idle musing about WinUI Pin
Super Lloyd23-Dec-21 21:21
Super Lloyd23-Dec-21 21:21 
GeneralRe: performance idle musing about WinUI Pin
honey the codewitch23-Dec-21 21:31
mvahoney the codewitch23-Dec-21 21:31 
GeneralMore Expanse from Prime! And it's free! Pin
OriginalGriff23-Dec-21 20:11
mveOriginalGriff23-Dec-21 20:11 
GeneralRe: More Expanse from Prime! And it's free! Pin
honey the codewitch23-Dec-21 20:14
mvahoney the codewitch23-Dec-21 20:14 
GeneralRe: More Expanse from Prime! And it's free! Pin
Super Lloyd23-Dec-21 21:17
Super Lloyd23-Dec-21 21:17 
GeneralRe: More Expanse from Prime! And it's free! Pin
Chris C-B23-Dec-21 21:40
Chris C-B23-Dec-21 21:40 
Generalbought a 2T USB flash drive on ebay: thumb size Pin
Southmountain23-Dec-21 14:53
Southmountain23-Dec-21 14:53 
GeneralRe: bought a 2T USB flash drive on ebay: thumb size Pin
Ron Anders23-Dec-21 15:57
Ron Anders23-Dec-21 15:57 
GeneralRe: bought a 2T USB flash drive on ebay: thumb size Pin
oofalladeez34323-Dec-21 19:48
professionaloofalladeez34323-Dec-21 19:48 
GeneralRe: bought a 2T USB flash drive on ebay: thumb size Pin
DRHuff23-Dec-21 16:23
DRHuff23-Dec-21 16:23 
GeneralRe: bought a 2T USB flash drive on ebay: thumb size Pin
k505423-Dec-21 16:59
mvek505423-Dec-21 16:59 
GeneralRe: bought a 2T USB flash drive on ebay: thumb size Pin
OriginalGriff23-Dec-21 19:59
mveOriginalGriff23-Dec-21 19:59 
GeneralRe: bought a 2T USB flash drive on ebay: thumb size Pin
dandy7224-Dec-21 3:24
dandy7224-Dec-21 3:24 
GeneralRe: bought a 2T USB flash drive on ebay: thumb size Pin
Southmountain24-Dec-21 4:26
Southmountain24-Dec-21 4:26 
GeneralRe: bought a 2T USB flash drive on ebay: thumb size Pin
OriginalGriff24-Dec-21 4:35
mveOriginalGriff24-Dec-21 4:35 
GeneralRe: bought a 2T USB flash drive on ebay: thumb size Pin
Mike Hankey24-Dec-21 4:11
mveMike Hankey24-Dec-21 4:11 
GeneralRe: bought a 2T USB flash drive on ebay: thumb size Pin
Southmountain24-Dec-21 4:24
Southmountain24-Dec-21 4:24 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   494 votes