All Questions
29 questions
1
vote
2
answers
1k
views
sum of array using multithreading
I implement sum element of array using multi threading but my question is when my program work with one thread the time is better than using 6 thread . I am using a CPU with 8 threads.What am I wrong
<...
2
votes
2
answers
1k
views
Sum of 2 arrays using multi threading
I'm trying to implement sum of 2 array using multi threading.
I expected that when I use more threads it will be faster than when I use one thread, but that isn't the case.
...
5
votes
0
answers
707
views
Multithreaded pathfinding in Unity C#
I've tried to implement multithreaded pathfinding in an attempt to increase performance, but if anything, performance seems to actually decrease when I enable multithreading.
Is there anything I ...
3
votes
0
answers
872
views
C# Procedural Mesh Generation Optimization
I'm making a terrain-deformation system in Unity that utilizes the common marching-cubes algorithm. So far I've gotten the system working, employed Unity's job system and burst compiler, and managed ...
3
votes
1
answer
110
views
Rate limit a method by generating particular load on demand in C#
I am working on a project where I want to generate random throughput on a particular method so that I can do some performance testing on it. This way I can test my method by generating random ...
2
votes
1
answer
211
views
Cross-thread label countdown
Short and sweet...
I wrote a cross-thread method that displays the countdown [in seconds] of a delay on a label.
I'm fairly confident it's far from optimal, so I'm in need of that glorious ...
3
votes
0
answers
2k
views
ConcurrentDictionary performance
i need to improve the performance of ConcurrentDictionary.
for that i created 2 classes for check if the more efficiencies than the original.
...
2
votes
1
answer
148
views
Write strings to a file while downloading new one simultaneous
I created this console app that gets some JSON strings from a web request using a Parallel.For loop,
...
7
votes
4
answers
3k
views
Thread-safe, Convenient and Performant Random Number Generator
I need to generate a lot of pseudo-random numbers in my software.
I'm trying to create a elegant (syntax-wise) and performant class that would allow me to generate such numbers and perform other ...
12
votes
5
answers
1k
views
Reducing contention in thread-safe LruCache
I was looking for a in-memory cache class, but couldn't find any in the .Net Core framework; luckily I found one already implemented here.
I made some minor modifications to it and tried to make it ...
5
votes
2
answers
155
views
PLINQ code analysis in terms of efficiency of cryptographic hashes generation
I have the following code that I wrote in order to find the correct password by generating hashes out of all possible combinations and comparing each of them with the target. I'm trying to make ...
4
votes
1
answer
724
views
Factorial calculation UI freezes on loading many items in ListBox
I've been experiencing this performance issue for about 3 days and really need your help. I'm a novice at c# and cannot understand what I can do to optimize my application.
The problem is that the UI ...
5
votes
1
answer
1k
views
Requesting 400 links with multithreading and ThreadPool
I am working on multi-threading application to learn multithreading better.
My application has a queue with 400 unique links, 4 threads and each thread is pulling link from the queue and sending a Get ...
0
votes
1
answer
5k
views
Retry cancelled tasks
I wrote an extension method for retrying tasks when cancelled.
Can speed, versatility, readability, or elegance be improved at all?
...
1
vote
1
answer
652
views