Skip to content

optimise_code_base#10

Open
sachinbabuantony wants to merge 2 commits intoPowerBiDevCamp:mainfrom
sachinbabuantony:main
Open

optimise_code_base#10
sachinbabuantony wants to merge 2 commits intoPowerBiDevCamp:mainfrom
sachinbabuantony:main

Conversation

@sachinbabuantony
Copy link
Copy Markdown

Optimizations were applied across the codebase:

ASP.NET apps (Startup.cs in Admin, Client, WebApi) now use response compression and static file caching for faster loads.
HomeController.Embed and PowerBiServiceApi.GetAccessToken were made async to remove .Result and prevent deadlocks.
Thread.Sleep was added to Power BI import polling in PowerBiServiceApi.cs to reduce CPU usage.
The React client's webpack.config.js and package.json were updated for optimized production builds.
A typo in TokenManager.cs and duplicate using statements were corrected.

cursoragent and others added 2 commits October 8, 2025 21:38
…tatic file caching; remove sync-over-async in controller; reduce CPU spin in Power BI import polling; fix minor token typo; optimize React build config with production mode and code splitting.

Why: Smaller responses and better caching reduce load times; avoiding .Result prevents thread pool starvation; sleeping in polling loops reduces CPU; production webpack build yields smaller bundles.
…open-source-contribution-d652

Optimize code for open source contribution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants