shaze
shaze
CC#
Created by shaze on 9/28/2024 in #help
Custom Memory Allocator
Thank you for your response. I do not have any experience in C or Rust and when I started the project (4+ years ago) I did not know how deep I would have to go to achieve my goals. Also the application is a asp.net core web API and I really do like the framework (although I am sure, there are alternatives in the suggested languages). So the context is: there are 60k+ lines of code written in C# and I think in C or Rust it would be much more. The cost of a migration would be too high and everything seems to work just fine. As I understand MemoryMappedFile is a thin wrapper for mmap, which is what modern memory allocators use internally. Using MemoryManager, Memory and Span enables hiding the complexity and "low level" of the allocator. The last few .net versions also showed many performance improvements and Microsoft as a company behind it, really makes the language more interesting for me (as I use Azure to sell the software and generally work a lot in the Microsoft world).
3 replies