C
C#13mo ago
Conrado

❔ optimization

Sincere question about optimization here... The RenderFirstTab() method is called in an infinite loop. Should I instantiate the FSLabel class just once in another location, and then call just the Render() method inside the Loop, or it's ok to do it this way:
5 Replies
Jimmacle
Jimmacle13mo ago
i'm not sure what framework this is but you should probably cache it
JakenVeina
JakenVeina13mo ago
almost certainly you should not be newing up unique objects each time
Anton
Anton13mo ago
it's ok if it's a struct
JakenVeina
JakenVeina13mo ago
True, syntax highlighting indicates it's not
Accord
Accord13mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
❔ How to instantiate derived class when base class requires args?Hey, I'll post the code below but I don't think it'll be necessary as I'm pretty sure I know what th❔ Not sure should I leave the automatic table alteration (postgres EF Core 3.0 to EF Core 6.0)You can see on the picture that EF Core has added some non intentional AlterColumn entries. I guess ❔ Writing VS Extension to Support Language with TextMate Grammar FileHello, I am trying to write extension to support BNF(Backus–Naur form) metalanguage files. I am try❔ Change trigger behavior from code behind(!)Hello again. I am still making a chess game using wpf&wcf. And the problem is that entire board is g❔ Getting SQL data from a relationship tableHello, for my school assignment I have to make a winforms app. Currently I have 3 tables in my SQL D❔ Fast Fourier Transform. I need to make app displaying image and result like ImageJImageJ: https://imagej.net/ij/ So i've chosen to make WPF app because im familiar with it and .NET i❔ ✅ I feel like I've gotten lost in what I'm doing right now, pls help.```cs public async Task DisplayUpdatedTicketsAsync(){ await UpdateTicketsAsync(); DisplayTic❔ How Configure Visual Studio to use webservice SOAP with .p12 certificateLet's see if someone can help me to connect SOAP with .pk certificate using visual studio, I'm alrea❔ About learning C# and Asp.net coreHello guys, i wanna ask something about learning path to web development with c#. I am learning C# ✅ How to fill JObject?I have following: var payload = new JObject{}; I'd like to fill this payload with random data and