Click here to Skip to main content
14,691,587 members
Home » Discussions » .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: 16bit grayscale png export? (and import?) Pin
Gerry Schmitz23-Feb-18 16:04
mveGerry Schmitz23-Feb-18 16:04 
QuestionCreating a Designer Compatible ToolStripControlHost? Pin
primem0ver17-Feb-18 11:44
Memberprimem0ver17-Feb-18 11:44 
Questionpassing data prom one thread to another Pin
galba201814-Feb-18 22:15
Membergalba201814-Feb-18 22:15 
AnswerRe: passing data prom one thread to another Pin
Richard MacCutchan14-Feb-18 23:07
mveRichard MacCutchan14-Feb-18 23:07 
QuestionProcesses list in Windows CE (.NET Compact Framework) Pin
steve_949661314-Feb-18 6:29
professionalsteve_949661314-Feb-18 6:29 
AnswerRe: Processes list in Windows CE (.NET Compact Framework) Pin
Eddy Vluggen14-Feb-18 7:11
professionalEddy Vluggen14-Feb-18 7:11 
GeneralRe: Processes list in Windows CE (.NET Compact Framework) Pin
steve_949661314-Feb-18 21:52
professionalsteve_949661314-Feb-18 21:52 
QuestionPerformance and memory optimization Pin
Super Lloyd13-Feb-18 15:31
MemberSuper Lloyd13-Feb-18 15:31 
I am starting to work on a polygon library, whose side are bezier curves. The basic don't quite work yet so I can't really write stress / performance test program yet. nor show much code.

At any rate I have classes like that
public class BezierFragment
{
    Point2D[] controlPoints; // length: 2, 3 or 4
}
public struct Point2D { public double X, Y; }

But I am wondering whether I should instead use struct (for less heap allocation and more stack copies)
public struct BezierFragment
{
    byte order; // 2, 3, or 4
    Point2D p0, p1, p2, p3;
}
public struct Point2D { public double X, Y; }

The later is much easier on the memory management, but might require more copy (of 65 bytes) struct. I wonder which one would be best.
How would I figure out the best option?
The (possible) memory management issues of the first choice might only be apparent when lots of Point2D[] array are saved in generation 2 memory pool and then destroyed...

Any tip?
A new .NET Serializer
All in one Menu-Ribbon Bar
Taking over the world since 1371!


modified 13-Feb-18 20:37pm.

AnswerRe: Performance and memory optimization Pin
Super Lloyd13-Feb-18 15:59
MemberSuper Lloyd13-Feb-18 15:59 
GeneralRe: Performance and memory optimization Pin
Nathan Minier15-Feb-18 3:05
professionalNathan Minier15-Feb-18 3:05 
SuggestionRe: Performance and memory optimization Pin
Richard Deeming15-Feb-18 3:14
mveRichard Deeming15-Feb-18 3:14 
GeneralRe: Performance and memory optimization Pin
Nathan Minier15-Feb-18 3:36
professionalNathan Minier15-Feb-18 3:36 
QuestionHow to programmatically add columns to wpf datagrid with MVVM? Pin
Member 135455647-Feb-18 23:12
MemberMember 135455647-Feb-18 23:12 
AnswerRe: How to programmatically add columns to wpf datagrid with MVVM? Pin
Gerry Schmitz8-Feb-18 9:44
mveGerry Schmitz8-Feb-18 9:44 
QuestionFake camera Pin
Member 135088291-Feb-18 12:17
MemberMember 135088291-Feb-18 12:17 
AnswerRe: Fake camera Pin
Gerry Schmitz1-Feb-18 14:08
mveGerry Schmitz1-Feb-18 14:08 
GeneralRe: Fake camera Pin
Member 135088291-Feb-18 22:44
MemberMember 135088291-Feb-18 22:44 
GeneralRe: Fake camera Pin
Gerry Schmitz2-Feb-18 7:35
mveGerry Schmitz2-Feb-18 7:35 
GeneralTop Web Designing Trends In 2018 Pin
Priyanka Kale31-Jan-18 2:41
MemberPriyanka Kale31-Jan-18 2:41 
GeneralRe: Top Web Designing Trends In 2018 Pin
OriginalGriff31-Jan-18 2:46
mveOriginalGriff31-Jan-18 2:46 
GeneralRe: Top Web Designing Trends In 2018 Pin
Priyanka Kale5-Feb-18 23:47
MemberPriyanka Kale5-Feb-18 23:47 
GeneralRe: Top Web Designing Trends In 2018 Pin
Eddy Vluggen31-Jan-18 3:58
professionalEddy Vluggen31-Jan-18 3:58 
GeneralRe: Top Web Designing Trends In 2018 Pin
Pete O'Hanlon31-Jan-18 4:40
subeditorPete O'Hanlon31-Jan-18 4:40 
GeneralRe: Top Web Designing Trends In 2018 Pin
Gerry Schmitz31-Jan-18 7:10
mveGerry Schmitz31-Jan-18 7:10 
GeneralRe: Top Web Designing Trends In 2018 Pin
Nathan Minier31-Jan-18 8:08
professionalNathan Minier31-Jan-18 8:08 

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.