惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threatpost
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Visual Studio Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Forbes - Security
Forbes - Security
人人都是产品经理
人人都是产品经理
N
Netflix TechBlog - Medium
Recent Commits to openclaw:main
Recent Commits to openclaw:main
WordPress大学
WordPress大学
Webroot Blog
Webroot Blog
Jina AI
Jina AI
H
Hacker News: Front Page
Attack and Defense Labs
Attack and Defense Labs
T
Troy Hunt's Blog
TaoSecurity Blog
TaoSecurity Blog
AI
AI
Hacker News - Newest:
Hacker News - Newest: "LLM"
Google Online Security Blog
Google Online Security Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Help Net Security
Help Net Security
美团技术团队
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 叶小钗
P
Privacy International News Feed
A
Arctic Wolf
IT之家
IT之家
云风的 BLOG
云风的 BLOG
S
Security Affairs
Simon Willison's Weblog
Simon Willison's Weblog
The Cloudflare Blog
博客园 - 司徒正美
Vercel News
Vercel News
C
Cyber Attacks, Cyber Crime and Cyber Security
SecWiki News
SecWiki News
K
Kaspersky official blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
N
News and Events Feed by Topic
S
Schneier on Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
有赞技术团队
有赞技术团队
PCI Perspectives
PCI Perspectives
F
Fortinet All Blogs
T
Tenable Blog
Spread Privacy
Spread Privacy
T
The Blog of Author Tim Ferriss
S
Securelist
L
LangChain Blog
Latest news
Latest news
Cloudbric
Cloudbric
博客园 - 三生石上(FineUI控件)

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
App Size: A Battle for Every Kilobyte, or Prioritizing Functionality?
Mustafa ERBAY · 2026-05-31 · via DEV Community

Mustafa ERBAY

Throughout my software development career, especially over the last 20 years, I've constantly sought a balance between system and software aspects. One of these balancing points is the issue of application size. On one side, I have an engineering instinct that says, "Every kilobyte matters, every excess is a cost," while on the other, a pragmatic perspective that argues, "Delivering value-adding functionality to the user as quickly as possible is essential." Navigating between these two extremes has been a significant part of my career.

So, should we really fight for every kilobyte? Or should we prioritize functionality? This is a gray area that varies depending on the project's context, target audience, and even deployment model. In my experience, there's no clear-cut answer to this question, but the best results can be achieved by asking the right questions and making conscious trade-offs. In this post, I'll share my thoughts and observations from different fields on this topic.

The Harsh Realities of Size in the Mobile World

The importance of size in mobile applications is undeniable. Especially in markets like Turkey, where mobile internet is widespread but not always fast or unlimited, app size directly affects download rates, user experience, and even how long an app stays on a device. Years ago, while developing my own Android spam application, I experienced this reality repeatedly. The smaller I made the app, the higher the download and installation rates became.

For example, at one point, my app's main package was around 12MB. After several rounds of optimization (cleaning up unnecessary resources, code compression with ProGuard, optimizing native libraries), I managed to reduce this size to 7MB. This 40% reduction directly reflected in my Play Store download statistics. This difference was critical, especially for users with low-bandwidth connections or those using capped mobile data. Some users even provided feedback stating they refrained from downloading the app simply because of its large size.

💡 Mobile Optimization Tip

When developing Android apps, using tools like apkanalyzer to inspect APK content in detail is very useful for understanding which resources or libraries take up the most space. Unused language packs or high-resolution images often occupy significant space.

Another impact arises during update processes. Users don't want to download large updates with every new version. This can lead to delays or complete cancellations of in-app updates. When I added a feature to my Android app, if it required a new large library, I considered loading it modularly or offering it only to Premium users. Because I didn't want every user to download that size. This situation constantly forces mobile developers to balance functionality with size. The app's cold start time is also directly affected by size; larger applications generally start slower.

Different Dynamics in Web and Enterprise Software

In the web world, especially with modern SPA (Single Page Application) architectures, JavaScript bundle sizes have become a serious problem. The total size of JavaScript, CSS, and other resources that users need to download to their browser directly affects the site's loading speed. Years ago, while developing a React-based dashboard application for a client project, we found our initial bundle size reached an exorbitant 4MB. This meant a poor initial loading experience.

To remedy the situation, we undertook aggressive optimizations:

  1. Code Splitting / Lazy Loading: We loaded only the necessary components for the main page, splitting other routes and modules to be downloaded when the user needed them.
  2. Tree Shaking: We optimized Webpack configuration to remove unused code from the bundle.
  3. Image Optimization: We switched to modern formats like WebP and compressed images.
  4. CDN Usage: We distributed static assets via global CDNs.

As a result of these steps, we managed to reduce the initial bundle size to around 800KB. This significantly improved the perceived speed of the site for users. According to our measurements, the Largest Contentful Paint (LCP) decreased by 60%. In web projects, this type of optimization can even affect SEO performance. [related: Web performance optimizations and SEO relationship]

In enterprise software, the situation is slightly different. Since the end-user typically accesses it from within the corporate network, bandwidth may not be as limited as mobile. However, deployment times and dependency management come to the forefront here. When developing an ERP for a manufacturing company, deploying a new module could sometimes take hours. One reason for this was the repeated deployment of a single large JAR file (monolith) with all its dependencies.

# Example JAR size and deployment time for a monolithic application
# These were typical values seen for a JAR file of approximately 300MB
# Even for a single version change, this time had to be waited.
$ ls -lh my-erp-monolith-1.2.3.jar
-rw-r--r-- 1 erbay erbay 298M May 28 14:30 my-erp-monolith-1.2.3.jar

$ time scp my-erp-monolith-1.2.3.jar user@erp-server:/opt/erp/
my-erp-monolith-1.2.3.jar                          100%  298MB  50.0MB/s   00:05

$ time systemctl restart erp-application.service
# Time for the application to fully start and enter service
real    1m35s
user    0m2s
sys     0m1s

In such cases, size impacts operational speed and agility rather than direct performance. Managing dependencies and enabling different modules to be deployed separately (with a transition towards a microservices architecture) both alleviates the size problem and accelerates development and operational processes.

Indirect Effects of Size in Backend and Infrastructure

In backend applications or infrastructure components, size is often given less importance because it doesn't directly affect the end-user. However, indirect costs and operational burdens arise here too. Especially since I started working with container technologies, I've personally experienced how critical Docker image sizes can be.

The size of a Docker image can directly affect deployment time, disk usage, network traffic, and even security vulnerabilities. For example, running an application in an Alpine Linux-based image (approx. 5MB base size) instead of an Ubuntu-based image (approx. 100MB base size) creates significant differences in network traffic and storage space saved with each new deployment.

# Ubuntu-based, larger image example
FROM ubuntu:22.04
RUN apt-get update && apt-get install -y python3 python3-pip && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
CMD ["python3", "app.py"]

# Alpine-based, smaller image example
FROM python:3.9-alpine
COPY requirements.txt .
RUN pip install -r requirements.txt --no-cache-dir
COPY . .
CMD ["python", "app.py"]

The difference between these two Dockerfiles can result in hundreds of megabytes in the final image size. In the backend of one of my side products, for services continuously passing through the CI/CD pipeline, I saw deployment times shortened by 30% using Alpine-based images. This is a significant gain, especially in an environment where deployments happen dozens of times a day. [related: Container image optimization techniques]

The issue of disk space also comes into play here. When running multiple containers on a server, their logs, temporary files, and image layers can eventually fill up the disk. Especially in an environment running with journald's default settings, log sizes can sometimes get out of control. Similarly, build caches or intermediate images in CI/CD processes can also occupy unnecessary disk space, reducing performance. Once, on my self-hosted CI/CD runner, I saw pipelines halt because Docker build caches completely filled the disk. This was a concrete example of how size directly impacts not only the end-user but also operational costs.

The Fine Line Between Functionality and Speed

In the application development process, adding a new feature usually means a new library or more code. This inevitably increases the application's size. The real question here is whether the functional gain brought by this size increase justifies the resulting cost. Sometimes, we realize we've added a very large library for a very small piece of functionality.

For example, when a need for PDF generation arises in a project, including a popular PDF library (e.g., iText in Java or ReportLab in Python) in the project can increase the package size by tens of megabytes. If this PDF feature is only for specific reports and used rarely, alternatives can be considered, such as running it as a separate microservice or generating it server-side and only sending the output to the client, instead of including this large library in the main package.

⚠️ ORM Trap: N+1 Problem

When using large and complex ORMs, especially due to eager loading or N+1 select issues, too much data can be fetched unnecessarily from the database. This does not directly increase the application's size but increases network traffic and memory usage, negatively impacting performance. In a production ERP, a specific report took 30 seconds to open. Upon investigation, I found that the ORM was making separate queries for each row and fetching hundreds of kilobytes of data unnecessarily.

This situation becomes even more pronounced when under pressure for rapid delivery. It can be tempting to opt for the easiest solution (often the largest library) "to get a feature out quickly." However, this accumulates technical debt and makes future optimizations more difficult. In my experience, these "quick solutions" often lead to higher costs in the medium and long term. While adding a 50KB library might seem insignificant initially, the accumulation of such additions over time can seriously affect the overall performance and maintenance of the application. This once again proves that software architecture is not just about writing code, but also about anticipating organizational flows and potential future growth scenarios.

Pragmatic Approach: Where and How Much to Optimize?

Extreme approaches like "give up everything" or "don't care about anything" usually don't work in application size optimization. The important thing is to strike a pragmatic balance according to the needs of the project and the target user group. There are some questions I ask myself to find this balance:

  • Who is my target audience? Mobile users in developing countries, or professionals in a high-bandwidth corporate network?
  • How often is the application downloaded/updated? Is it a one-time download, or a continuously updated SaaS product?
  • What would be the benefit of optimization? How many seconds would a 1MB reduction save, how many users would it satisfy?
  • What would be the cost of optimization? Development time, maintenance difficulty, loss of readability?

The answers to these questions have led me to different strategies. For example, while I might fight for every kilobyte in a consumer-facing mobile app, I can tolerate larger bundle sizes in an internal corporate management panel. The important thing here is to make a conscious decision and stand by it.

When developing an internal platform for a bank, even a frontend bundle size of 10MB was not much of an issue. Because users accessed the platform from a fixed network with powerful computers, and the browser cache kicked in after the initial load. However, for the financial calculators of my side product, fast page loading was critical. So I compressed every JavaScript and CSS file, optimized images, and even rendered some dynamic content server-side.

// Webpack example for code splitting and lazy loading
// This ensures only main page components are loaded into the main bundle,
// other modules are downloaded when the user needs them.

const Dashboard = lazy(() => import('./Dashboard'));
const Reports = lazy(() => import('./Reports'));

function App() {
  return (
    <div>
      Loading...</div>}>
        {/* Router-based lazy loading */}
        {window.location.pathname === '/dashboard' && }
        {window.location.pathname === '/reports' && }

    </div>
  );
}

While implementing such strategies, I constantly measured the performance I achieved. I observed the effects of changes with Lighthouse scores, Core Web Vitals metrics, and my own custom telemetry systems. For example, when I applied an image compression algorithm, I saw that the page size decreased by 15% and the LCP (Largest Contentful Paint) value improved by an average of 0.5 seconds. These concrete data showed that my optimization efforts were not in vain.

Conclusion

The issue of application size is a good example of a trade-off cycle we frequently encounter in engineering. The answer to the question "A battle for every kilobyte, or prioritizing functionality?" is not black or white, but a shade of gray that varies according to the project's context. My clear position has always been in favor of "conscious balance."

On mobile platforms or in low-bandwidth environments, size optimization is vital. On the web, especially for sites where initial loading speed is critical, the importance of size is also great. In the backend and infrastructure, size primarily affects operational costs and deployment speed. In every case, our duty as developers is to provide the best user experience while not neglecting operational efficiency. This sometimes means tolerating an extra few kilobytes, and sometimes it means compressing every byte with hours of optimization work. The important thing is to support these decisions with data and act in line with the overall goals of the project.