Mapperly —— .NET 对象映射生成器
Mapperly 是一个用于生成对象映射的 .NET 代码生成器,灵感来自 MapStruct。 Mapperly 会在构建时创建映射代码,所以其运行时的开销最小。此外生成的代码完全可读,开发者可轻松验证生成的映射代码。 性能对比 Method Mean Error StdDev Gen 0 Allocated AgileMapper 1,523.8 ns 3.90 ns 3.25 ns 1.5106 3,160 B TinyMapper 4,094.3 ns 3.90 ns 3.05 ns 1.0300 2,160 B ExpressMapper 2,595.8 ns 5.49 ns 5.14 ns 2.3422 4,904 B AutoMapper 1,203.9 ns 2.30 ns 2.15 ns 0.9098 1,904 B ManualMapping 529.6 ns 0.52 ns 0.44 ns 0.5541 1,160 B Mapster 562.1 ns 1.14 ns 0.89 ns 0.9098 1,904 B Mapperly 338.5 ns 0.95 ns...
