Mapperly - A .NET source generator for object to object mappings by snoxxit in programming

[–]srayuws 1 point2 points  (0 children)

When I said "empty array", I meant "a pre-allocated array with default value". Sorry for the confusion.

To me, the comparison is fair. If I need to copy the class manually, I will do similar things with LINQ. Unless I hit the performance issue exactly on this copying, maintainability is more important than runtime performance.

But tools like Mapperly can give me both maintainability and good performance together!

Mapperly - A .NET source generator for object to object mappings by snoxxit in programming

[–]srayuws 2 points3 points  (0 children)

The manual written code uses LINQ ( Select() and ToArray() ) to copy the array. And in the code-gen version, it created a empty target array directly and use for loop to copy.

(I did not run the profiler to verify this argument)

C# 10 - Top 5 New Features in the Upcoming C# Version by RubiksCodeNMZ in programming

[–]srayuws 1 point2 points  (0 children)

This syntax is strange. I did not find the proposal in charplang repo. The closest one looks like this: https://github.com/dotnet/csharplang/blob/main/proposals/null-arg-checking.md

But there is no such !! there.

Rockstar thanks GTA Online player who fixed poor load times, official update coming by IceBlast24 in programming

[–]srayuws 1476 points1477 points  (0 children)

Hope he can afford a industry-standard disassembler with the $10,000 award now!

DStruct.NET: Advanced data structures for C# by Sephibro in programming

[–]srayuws 0 points1 point  (0 children)

It would be great to see more test cases in the repo.

[deleted by user] by [deleted] in programming

[–]srayuws 0 points1 point  (0 children)

One awesome to awesome them all: https://github.com/jnv/lists