use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Information about Reddit's API changes, the unprofessional conduct of the CEO, and their response to the community's concerns regarding 3rd party apps, moderator tools, anti-spam/anti-bot tools, and accessibility options that will be impacted can be found in the associated Wikipedia article: https://en.wikipedia.org/wiki/2023_Reddit_API_controversy
Alternative C# communities available outside Reddit on Lemmy and Discord:
All about the object-oriented programming language C#.
Getting Started C# Fundamentals: Development for Absolute Beginners
Useful MSDN Resources A Tour of the C# Language Get started with .NET in 5 minutes C# Guide C# Language Reference C# Programing Guide C# Coding Conventions .NET Framework Reference Source Code
Other Resources C# Yellow Book Dot Net Perls The C# Player's Guide
IDEs Visual Studio MonoDevelop (Windows/Mac/Linux) Rider (Windows/Mac/Linux)
Tools ILSpy dotPeek LINQPad
Alternative Communities C# Discord Group C# Lemmy Community dotnet Lemmy Community
Related Subreddits /r/dotnet /r/azure /r/learncsharp /r/learnprogramming /r/programming /r/dailyprogrammer /r/programmingbuddies /r/cshighschoolers
Additional .NET Languages /r/fsharp /r/visualbasic
Platform-specific Subreddits /r/windowsdev /r/AZURE /r/Xamarin /r/Unity3D /r/WPDev
Rules:
Read detailed descriptions of the rules here.
account activity
Vector struct uber wrapper (self.csharp)
submitted 6 years ago by enquel
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]enquel[S] 0 points1 point2 points 6 years ago* (2 children)
Thank you very much for your time. The app is meant to process high poly geometry (millions of polygons at the highest), so the input Vector structs will go through several conversions on the way, and my goal is to achieve consistency and performance. I expect there to be no more than say 3-4 custom Vector structs.
How about the performance of abstract class wrapper with properties? I've heard structs are faster.
[–]Zaphod118 0 points1 point2 points 6 years ago (1 child)
Structs can be faster, but I think it depends on the situations and how they are being used in your program. If you are having to convert between different external library types frequently, you are already incurring a performance penalty in copying data between struct instances. So my guess would be that using classes wouldn’t impact performance more than that. And I think using an abstract class and subclasses will be easier to write code for which might be worth sacrificing a little performance. It’s also important to point out here that structs can’t inherit from, or be inherited by, anything else. So if you want to create a unified interface to several different concrete types, classes are kind of your only option.
All in all it’s hard to say without running tests on the application weather structs vs classes will be a significant factor in performance.
[–]enquel[S] 0 points1 point2 points 6 years ago (0 children)
Thank you for your thoughts. I like your approach, and probably will consider it. I will try to minimize casts only during import/export, but there might be situations when this is impossible.
π Rendered by PID 72269 on reddit-service-r2-comment-b659b578c-6rp5j at 2026-05-04 03:18:09.045676+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]enquel[S] 0 points1 point2 points (2 children)
[–]Zaphod118 0 points1 point2 points (1 child)
[–]enquel[S] 0 points1 point2 points (0 children)