---
title: "In computer science, it is said that premature optimization is the ro… — Larry Wall Quote #285 | QuotesBy.net"
description: "In computer science, it is said that premature optimization is the root of all evil. — a quote by Larry Wall."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

> # In computer science, it is said that premature optimization is the root of all evil.

[Larry Wall](https://quotesby.net/Larry-Wall)\#285

[Software](https://quotesby.net/Larry-Wall/software/)[Performance](https://quotesby.net/Larry-Wall/performance/)[Optimization](https://quotesby.net/Larry-Wall/optimization/)[Software engineering](https://quotesby.net/Larry-Wall/software-engineering/)

[WhatsApp (opens in a new tab)](https://wa.me/?text=%E2%80%9CIn%20computer%20science%2C%20it%20is%20said%20that%20premature%20optimization%20is%20the%20root%20of%20all%20evil.%E2%80%9D%20%E2%80%94%20Larry%20Wall%20https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F285%2F)[X (opens in a new tab)](https://twitter.com/intent/tweet?text=%E2%80%9CIn%20computer%20science%2C%20it%20is%20said%20that%20premature%20optimization%20is%20the%20root%20of%20all%20evil.%E2%80%9D%20%E2%80%94%20Larry%20Wall&url=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F285%2F)[Facebook (opens in a new tab)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F285%2F)

## About this quote

What does it mean?Focusing on premature optimization leads to larger problems.In plain termsOptimizing too early is harmful.What can you take from it?Delay optimization until after correctness is proven.

### Where it applies

- early development
- performance tuning

### Putting it to work

- write clear code first
- profile before optimizing

### Questions to consider

- When is early optimization justified?
- How to balance speed and correctness?

### Another view

Some early optimizations can be necessary in constrained environments.

## More from Larry Wall

1. > There are a lotta computer languages out there doing drugs.

[Permalink to quote \#284](https://quotesby.net/Larry-Wall/284/ "Permalink to quote 284")
2. > \[Boxed\] Multiple bouncing balls in a box are a metaphor for community. Notice how the escaping balls explode. This is what happens to people who move from Perl…

[Permalink to quote \#286](https://quotesby.net/Larry-Wall/286/ "Permalink to quote 286")
3. > If there's a particular problem that Perl is trying to solve, it's the basic fact that all programming languages suck. Sort of the concept of original sin, app…

[Permalink to quote \#283](https://quotesby.net/Larry-Wall/283/ "Permalink to quote 283")

## Related quotes

1. > Optimizations always bust things, because all optimizations are, in the long haul, a form of cheating, and cheaters eventually get caught.

[Larry Wall](https://quotesby.net/Larry-Wall)[Larry Wall quote \#315](https://quotesby.net/Larry-Wall/315/ "Permalink to quote 315")
2. > If the pros at Sun had had a chance to fix Java, the world would be a much more pleasant place. This is not secret knowledge. It's just secret to this pop cult…

[Alan Kay](https://quotesby.net/Alan-Kay)[Alan Kay quote \#12](https://quotesby.net/Alan-Kay/12/ "Permalink to quote 12")
3. > People who are really serious about software should make their own hardware.

[Alan Kay](https://quotesby.net/Alan-Kay)[Alan Kay quote \#20](https://quotesby.net/Alan-Kay/20/ "Permalink to quote 20")

```json
{
    "@context": "https://schema.org",
    "@type": "Quotation",
    "text": "In computer science, it is said that premature optimization is the root of all evil.",
    "url": "https://quotesby.net/Larry-Wall/285/",
    "spokenByCharacter": {
        "@type": "Person",
        "name": "Larry Wall"
    }
}
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://quotesby.net/"
        },
        {
            "@type": "ListItem",
            "position": 2,
            "name": "Authors",
            "item": "https://quotesby.net/authors/"
        },
        {
            "@type": "ListItem",
            "position": 3,
            "name": "Larry Wall",
            "item": "https://quotesby.net/Larry-Wall"
        },
        {
            "@type": "ListItem",
            "position": 4,
            "name": "Quote #285",
            "item": "https://quotesby.net/Larry-Wall/285/"
        }
    ]
}
```
