Click here to Skip to main content
14,332,555 members

.NET Framework

 
AnswerRe: 16bit grayscale png export? (and import?) Pin
Gerry Schmitz23-Feb-18 15:04
mveGerry Schmitz23-Feb-18 15:04 
QuestionCreating a Designer Compatible ToolStripControlHost? Pin
primem0ver17-Feb-18 10:44
memberprimem0ver17-Feb-18 10:44 
Questionpassing data prom one thread to another Pin
galba201814-Feb-18 21:15
membergalba201814-Feb-18 21:15 
AnswerRe: passing data prom one thread to another Pin
Richard MacCutchan14-Feb-18 22:07
protectorRichard MacCutchan14-Feb-18 22:07 
QuestionProcesses list in Windows CE (.NET Compact Framework) Pin
steve_949661314-Feb-18 5:29
professionalsteve_949661314-Feb-18 5:29 
AnswerRe: Processes list in Windows CE (.NET Compact Framework) Pin
Eddy Vluggen14-Feb-18 6:11
mveEddy Vluggen14-Feb-18 6:11 
GeneralRe: Processes list in Windows CE (.NET Compact Framework) Pin
steve_949661314-Feb-18 20:52
professionalsteve_949661314-Feb-18 20:52 
QuestionPerformance and memory optimization Pin
Super Lloyd13-Feb-18 14:31
memberSuper Lloyd13-Feb-18 14: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 14:59
memberSuper Lloyd13-Feb-18 14:59 
GeneralRe: Performance and memory optimization Pin
Nathan Minier15-Feb-18 2:05
professionalNathan Minier15-Feb-18 2:05 
SuggestionRe: Performance and memory optimization Pin
Richard Deeming15-Feb-18 2:14
mveRichard Deeming15-Feb-18 2:14 
GeneralRe: Performance and memory optimization Pin
Nathan Minier15-Feb-18 2:36
professionalNathan Minier15-Feb-18 2:36 
QuestionHow to programmatically add columns to wpf datagrid with MVVM? Pin
Member 135455647-Feb-18 22:12
memberMember 135455647-Feb-18 22:12 
AnswerRe: How to programmatically add columns to wpf datagrid with MVVM? Pin
Gerry Schmitz8-Feb-18 8:44
mveGerry Schmitz8-Feb-18 8:44 
QuestionFake camera Pin
Member 135088291-Feb-18 11:17
memberMember 135088291-Feb-18 11:17 
AnswerRe: Fake camera Pin
Gerry Schmitz1-Feb-18 13:08
mveGerry Schmitz1-Feb-18 13:08 
GeneralRe: Fake camera Pin
Member 135088291-Feb-18 21:44
memberMember 135088291-Feb-18 21:44 
GeneralRe: Fake camera Pin
Gerry Schmitz2-Feb-18 6:35
mveGerry Schmitz2-Feb-18 6:35 
GeneralTop Web Designing Trends In 2018 Pin
Priyanka Kale31-Jan-18 1:41
memberPriyanka Kale31-Jan-18 1:41 
GeneralRe: Top Web Designing Trends In 2018 Pin
OriginalGriff31-Jan-18 1:46
protectorOriginalGriff31-Jan-18 1:46 
GeneralRe: Top Web Designing Trends In 2018 Pin
Priyanka Kale5-Feb-18 22:47
memberPriyanka Kale5-Feb-18 22:47 
GeneralRe: Top Web Designing Trends In 2018 Pin
Eddy Vluggen31-Jan-18 2:58
mveEddy Vluggen31-Jan-18 2:58 
GeneralRe: Top Web Designing Trends In 2018 Pin
Pete O'Hanlon31-Jan-18 3:40
protectorPete O'Hanlon31-Jan-18 3:40 
GeneralRe: Top Web Designing Trends In 2018 Pin
Gerry Schmitz31-Jan-18 6:10
mveGerry Schmitz31-Jan-18 6:10 
GeneralRe: Top Web Designing Trends In 2018 Pin
Nathan Minier31-Jan-18 7:08
professionalNathan Minier31-Jan-18 7: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.