Hey guys,
I recently started a job as a trainee in a large company. My task is to refactor an internal company app made with ASP.NET Core MVC.
Here’s the situation: I’ve been told that the main problem is the primary controller, which contains a lot of functions (approximately 13.5k lines of code for various modules within a single controller). For me, a student who has never seen more than 1-2k lines of code in a single app, this is overwhelming.
The app consists of 5 modules, and the theory is that using any of these modules loads the entire controller, causing the app to slow down.
My job is to separate this controller into 5 smaller controllers, so that only the relevant controller and functions are loaded, without executing any other functions that do not belong to the respective module.
While I believe (hope) this will help, I have some concerns.
That’s why I’m asking for your opinion on how to improve the overall performance.
What should I be taking care of?
The app uses ASP.NET Core, Ajax requests, LINQ, and Bootstrap. Sometimes it takes its time just to load a view. It’s not too slow, but you can notice something is off.
Greetings to everyone!
At the moment i’m about to finish one controller for one module, but I was making testing of it and I don’t see a great improvement on it. That’s why I’m too worried and asking for your help and opinions.
Edgar David Vargas Fuentes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.