« first day (3012 days earlier)      last day (1936 days later) » 

5:06 PM
hi i have 2 questions about this code i wrote: https://pastebin.com/Q1W1r9uf

1. Needs "allResults" to be a ConcurrentBag because I do AddRange Parallel?
2. the operations in the while will only take a few seconds. Is it a performance overhead or GC issue to create the Parallel.ForEach in this high frequency?
 
I'd definitely make allResults a ConcurrentBag (or any other concurrent collection)
also, you might want to try using a parallel IEnumerable pipeline
like this
eventsToCheck
    .AsParallel()
    .SelectMany(event => GetResultById(event))
    .ToList()
 
NH.
c# is looking more like JavaScript every day
 
or is JavaScript looking more like C#?
ToList might not support concurrency, so you might want to replace that one with an action that adds the elements to a bag
 
NH.
nah, they will never be strongly typed
 
then JavaScript will die!
finally!
in any case, im out
laytar
 
5:13 PM
interesting! I see AsParallel has no parameter where i can give parallelOptions so i think it would run 100 tasks parallel if the bag had 100 items, right?
 
NH.
🇰🇰
 
5:26 PM
The older style parallel APIs have that, I think
like Parallel.ForEach
but the newer Task-based ones figure that out by themselves
(since your computer can't do 100 tasks in parallel anyways)
 
NH.
not true parallel
unless you have 100 cores to work with
 
i understand thank you :)
 
Who says I don't have 100 parallel threads?
Maybe I've got a dual socket Epyc server with Dual 32-core CPUs with SMT
 
new ParallelOptions {MaxDegreeOfParallelism = 8}
 
 
1 hour later…
6:54 PM
@RoelvanUden you still here?
 
@SebastianL For some odd reason, yes.
 
is your crunchyroll script still working?
 
Unlikely. With some tweaking, it should be good to go. There are forks AFAIK.
 
okay ^^ ty
 
yw ^^ gl :-P
 
7:00 PM
SHIT, Im too late to know [CallerMemberName]
This will save me millions of copy paste
 
7:15 PM
 
 
1 hour later…
8:40 PM
hi
i have an question about repository.can you help me
please
 
!!dontask
 
Jul 3 '18 at 19:41, by Kendall Frey
Don't ask if you're allowed to ask a question. Don't ask if anyone's available or knows how to use what you're using. Don't say you're going to post a question. Just ask your question.
 
i use repository and unitofwork in DAL . and service in BLL and UI winform (entity dependency injection)
when i call bll in UI , i have error
i have anydesk to remote. can you help me?
 
9:27 PM
anydesk?
You want some rando to remote in and fix your code?
 
10:08 PM
looool
 
 
1 hour later…
11:12 PM
hah
 
11:30 PM
Morning
O/
 

« first day (3012 days earlier)      last day (1936 days later) »