<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/a-few-tips-for-performance-optimization-ltaspwqpe" -->

---
title: A few tips for performance optimization | daily.dev
description: Covers several techniques for improving website loading speed, including splitting JS/CSS into chunks, compressing content, using CDNs, and geographic...
canonical: https://daily.dev/posts/a-few-tips-for-performance-optimization-ltaspwqpe
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: A few tips for performance optimization | daily.dev
og:description: Covers several techniques for improving website loading speed, including splitting JS/CSS into chunks, compressing content, using CDNs, and geographic...
og:url: https://daily.dev/posts/a-few-tips-for-performance-optimization-ltaspwqpe
og:image: https://api.daily.dev/og/posts/lTASPWqPe.png
og:image:alt: A few tips for performance optimization
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# A few tips for performance optimization

**[Code4IT](https://daily.dev/sources/code4it)** · 5 min read · 0 upvotes · 0 comments

## Summary

Covers several techniques for improving website loading speed, including splitting JS/CSS into chunks, compressing content, using CDNs, and geographic distribution. Explains the difference between minification and compression, details the Brotli compression algorithm versus gzip (compression levels, default settings, browser support), and contrasts ASP.NET Core's in-process vs out-of-process hosting models with Kestrel. Also introduces MiniProfiler as a tool for profiling specific code sections across .NET, Go, Ruby, and Node.js.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.code4it.dev/blog/few-tips-for-performance-optimization>

## Questions this post answers

### What's the difference between Brotli and gzip compression for web performance?

Brotli, developed by Google, achieves smaller file sizes than gzip, around 17% better compression, using a shared dictionary between client and server to replace common keywords with smaller keys. Gzip's compression levels range from 1 to 9 with a default of 6, while Brotli ranges from 1 to 11 with a default of 11, making it slower by default but more compressed. Brotli is supported by nearly all browsers except IE11.

_daily.dev surfaces practical comparisons like this for developers tuning web response times._

### Should I use in-process or out-of-process hosting model for ASP.NET Core on IIS?

In-process hosting model is faster because the app runs in the same process as the IIS worker, avoiding the extra HTTP call to Kestrel that out-of-process hosting requires. Out-of-process is the default for .NET Core apps due to cross-platform design, but on Windows machines you should switch to in-process by setting AspNetCoreHostingModel to InProcess in web.config.

_Developers tuning ASP.NET Core deployments on IIS can find configuration guidance like this via daily.dev._

## Similar posts on daily.dev

- [Performance Tuning in ASP.NET Core: Best Practices for 2025](https://daily.dev/posts/performance-tuning-in-asp-net-core-best-practices-for-2025-ffdkptjfa) · Syncfusion · 3 upvotes · 0 comments
- [Web Performance & Optimisation](https://daily.dev/posts/web-performance-optimisation-i331jarhz) · Medium · 2 upvotes · 0 comments
- [ASP.NET Core 11 Request Pipeline Performance Deep Dive](https://daily.dev/posts/asp-net-core-11-request-pipeline-performance-deep-dive-y8dxv0kx8) · C\# Corner · 2 upvotes · 0 comments
- [Web Performance 2025: The Shift from Optimization to Prediction](https://daily.dev/posts/web-performance-2025-the-shift-from-optimization-to-prediction-emdlyovyv) · Web Performance Calendar · 0 upvotes · 0 comments
- [A complete guide to React performance optimization](https://daily.dev/posts/a-complete-guide-to-react-performance-optimization-zei2krfdt) · LogRocket · 3 upvotes · 0 comments

---

Tags: [#performance](https://daily.dev/tags/performance), [#aspnet](https://daily.dev/tags/aspnet)

[View this post on daily.dev](https://daily.dev/posts/a-few-tips-for-performance-optimization-ltaspwqpe)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"A few tips for performance optimization","url":"https://daily.dev/posts/a-few-tips-for-performance-optimization-ltaspwqpe","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/a-few-tips-for-performance-optimization-ltaspwqpe"},"datePublished":"2026-10-04T13:06:48.722Z","dateModified":"2026-10-04T13:09:59.055Z","description":"Covers several techniques for improving website loading speed, including splitting JS/CSS into chunks, compressing content, using CDNs, and geographic...","image":"https://media.daily.dev/image/upload/s--P4t4XyoV--/f_auto/v1722860399/public/Placeholder%2001","thumbnailUrl":"https://media.daily.dev/image/upload/s--P4t4XyoV--/f_auto/v1722860399/public/Placeholder%2001","isAccessibleForFree":true,"articleSection":"Code4IT","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Code4IT","logo":"https://media.daily.dev/image/upload/s--OaaG4G10--/f_auto,q_auto/v1791119049/logos/code4it?_a=BAMAMicg0","url":"https://daily.dev/sources/code4it"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/a-few-tips-for-performance-optimization-ltaspwqpe","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"performance,aspnet","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Code4IT","item":"https://daily.dev/sources/code4it"},{"@type":"ListItem","position":3,"name":"A few tips for performance optimization"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/a-few-tips-for-performance-optimization-ltaspwqpe#faq","mainEntity":[{"@type":"Question","name":"What's the difference between Brotli and gzip compression for web performance?","acceptedAnswer":{"@type":"Answer","text":"Brotli, developed by Google, achieves smaller file sizes than gzip, around 17% better compression, using a shared dictionary between client and server to replace common keywords with smaller keys. Gzip's compression levels range from 1 to 9 with a default of 6, while Brotli ranges from 1 to 11 with a default of 11, making it slower by default but more compressed. Brotli is supported by nearly all browsers except IE11. daily.dev surfaces practical comparisons like this for developers tuning web response times."}},{"@type":"Question","name":"Should I use in-process or out-of-process hosting model for ASP.NET Core on IIS?","acceptedAnswer":{"@type":"Answer","text":"In-process hosting model is faster because the app runs in the same process as the IIS worker, avoiding the extra HTTP call to Kestrel that out-of-process hosting requires. Out-of-process is the default for .NET Core apps due to cross-platform design, but on Windows machines you should switch to in-process by setting AspNetCoreHostingModel to InProcess in web.config. Developers tuning ASP.NET Core deployments on IIS can find configuration guidance like this via daily.dev."}}]}
```

