the_sea_jay
the_sea_jay
CC#
Created by the_sea_jay on 12/29/2022 in #help
❔ Best way to you Read lot of files?
Yea I did Benchmark with Benchmarkdotnet and at this point it is more in my own interest rather than an actual real scenario problem. But is there maybe some unsafe way can solve this? Thanks for any info so far!
13 replies
CC#
Created by the_sea_jay on 12/29/2022 in #help
❔ Best way to you Read lot of files?
I Could make a static Filestream , but that does not change the problem with new Files
13 replies
CC#
Created by the_sea_jay on 12/29/2022 in #help
❔ Best way to you Read lot of files?
Well I dont know how many Files need to be read(also because of user input) but I wanted to make it flexible so if I need to read thousands of files it should do so and possible without much or any extra allocations so it wont run the Collector 2 much
13 replies
CC#
Created by the_sea_jay on 12/29/2022 in #help
❔ Best way to you Read lot of files?
setting it to 0 or 1 does disable it but there are still other allocations, not that big anymore (without the buffer Filestream does allocate ~200b instead of 4kb)
13 replies
CC#
Created by the_sea_jay on 12/29/2022 in #help
❔ Best way to you Read lot of files?
Seems like this allocates even more per use than a FileStream
13 replies
CC#
Created by the_sea_jay on 12/16/2022 in #help
❔ Will I get a performance hit if I use the Enum type as a key value for a Dictionary?
I could also do 2 Dictionary with Tee1 as a key and in the other Tee2, my questing was just if I do it the way with Enum type as key , do i Get a performence hit
32 replies
CC#
Created by the_sea_jay on 12/16/2022 in #help
❔ Will I get a performance hit if I use the Enum type as a key value for a Dictionary?
Since Tee1.None and Tee2.None are both underlying int with the value 0, how does the compiler know the difference between Tee1.None and Tee2.None?
32 replies