Optimizing reflection in C# via dynamic code generation

C# language — background by Fotis Fotopolous on Unsplash

I have recently been spending a lot of time working on ComputeSharp, a .NET Standard 2.1 library written in C# 8.0 that lets you run code in parallel on the GPU through DX12 and dynamically generated HLSL compute shaders. That is a somewhat unintuitive description for a library that does something conceptually simple: it runs code in parallel in a manner similar to Parallel.For, but on the GPU…

--

--

--

Software Engineer II at Microsoft, working on the Microsoft Store for Windows 11. .NET Community Toolkit lead. .NET Foundation member and former Microsoft MVP.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

A story of how happy faces can be bad for your software

Working on a bug in Microsoft VSCode (Part 1)

Ever since I was a little boy, I have only ever wanted to be a Doctor.

Dockerfile, history of the image

[Unity ECS] Magical places that store arbitrary object types

Unity3D — Place or Move an Object on click

Testing is a Temperament! Why to follow me?

Game Programming Pattern: Singleton

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sergio Pedri

Sergio Pedri

Software Engineer II at Microsoft, working on the Microsoft Store for Windows 11. .NET Community Toolkit lead. .NET Foundation member and former Microsoft MVP.

More from Medium

Tips on migrating an existing C# project to using async

Exploring C# Source Generators (Part 3):

Comparing Deserialization Performance Using This .Net Tool