---
title: "It would be possible to optimize some forms of goto, but I haven't bo… — Larry Wall Quote #111 | QuotesBy.net"
description: "It would be possible to optimize some forms of goto, but I haven't bothered. — a quote by Larry Wall."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

> # It would be possible to optimize some forms of goto, but I haven't bothered.

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

[Performance](https://quotesby.net/Larry-Wall/performance/)[Optimization](https://quotesby.net/Larry-Wall/optimization/)[Code](https://quotesby.net/Larry-Wall/code/)[Goto](https://quotesby.net/Larry-Wall/goto/)[Effort](https://quotesby.net/topics/effort/)

[WhatsApp (opens in a new tab)](https://wa.me/?text=%E2%80%9CIt%20would%20be%20possible%20to%20optimize%20some%20forms%20of%20goto%2C%20but%20I%20haven%27t%20bothered.%E2%80%9D%20%E2%80%94%20Larry%20Wall%20https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F111%2F)[X (opens in a new tab)](https://twitter.com/intent/tweet?text=%E2%80%9CIt%20would%20be%20possible%20to%20optimize%20some%20forms%20of%20goto%2C%20but%20I%20haven%27t%20bothered.%E2%80%9D%20%E2%80%94%20Larry%20Wall&url=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F111%2F)[Facebook (opens in a new tab)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F111%2F)

## About this quote

What does it mean?Optimizing goto is possible, but I haven’t done it.In plain termsGoto could be optimized, but I didn’t bother.What can you take from it?Only invest effort where the benefit justifies it.

### Where it applies

- performance tuning
- legacy code maintenance
- benchmarking

### Putting it to work

- profile goto usage
- optimize only if it shows measurable gain

### Questions to consider

- When is it worth optimizing a rarely used feature?
- How to measure optimization payoff?

### Another view

Skipping optimization may leave performance gaps.

## More from Larry Wall

1. > I hope I'm not getting so famous that I can't think out load \[sic\] anymore.

[Permalink to quote \#110](https://quotesby.net/Larry-Wall/110/ "Permalink to quote 110")
2. > A 'goto' in Perl falls into the category of hard things that should be possible, not easy things that should be easy.

[Permalink to quote \#112](https://quotesby.net/Larry-Wall/112/ "Permalink to quote 112")
3. > As with all the other proposals, it's basically just a list of words. You can deal with that... :-)

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

## Related quotes

1. > In Armenia, the economic condition is miserable not because we have the Artsakh issue, but because, first of all, we have worked poorly. Since '95, our living …

[Vazgen Sargsyan](https://quotesby.net/Vazgen-Sargsyan)[Vazgen Sargsyan quote \#1](https://quotesby.net/Vazgen-Sargsyan/1/ "Permalink to quote 1")
2. > 'I already gave my best, and I have no regrets at all.' (American Idol)

[William Hung](https://quotesby.net/William-Hung)[William Hung quote \#1](https://quotesby.net/William-Hung/1/ "Permalink to quote 1")
3. > 'I'm out there to play football. Regardless of what numbers I put up, people talk about not throwing touchdowns, or not getting 300 yards passing. You have to …

[Steve McNair](https://quotesby.net/Steve-McNair)[Steve McNair quote \#1](https://quotesby.net/Steve-McNair/1/ "Permalink to quote 1")

```json
{
    "@context": "https://schema.org",
    "@type": "Quotation",
    "text": "It would be possible to optimize some forms of goto, but I haven't bothered.",
    "url": "https://quotesby.net/Larry-Wall/111/",
    "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 #111",
            "item": "https://quotesby.net/Larry-Wall/111/"
        }
    ]
}
```
