https://github.com/rodrigosaint/csharp-dynamic-performance
A performance test of huge amounts of data on c#
https://github.com/rodrigosaint/csharp-dynamic-performance
Last synced: 10 months ago
JSON representation
A performance test of huge amounts of data on c#
- Host: GitHub
- URL: https://github.com/rodrigosaint/csharp-dynamic-performance
- Owner: RodrigoSaint
- Created: 2018-11-08T18:33:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-08T18:44:24.000Z (over 7 years ago)
- Last Synced: 2025-03-18T14:50:19.951Z (about 1 year ago)
- Language: C#
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# csharp-dynamic-performance
1. Scenary
I had to get a huge ammount of data from elasticsearch to do some custom sorting, the data there is dynamic so I couldn't create a class where I would put the data from it. That caused some problems of performance.
2. Experiment
Seeing how v8 handles javascript dynamic object creating I got the idea to do this with c#. Using some classes on Reflection namespace I was able to create a new class at runtime. That allowed me to reduce memory costs almost 3 times.