---
title: "As someone pointed out, you could have an attribute that says 'optimi… — Larry Wall Quote #117 | QuotesBy.net"
description: "As someone pointed out, you could have an attribute that says 'optimize the heck out of this routine', and your definition of heck would be a paramet… — a quote by Larry Wall."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

> # As someone pointed out, you could have an attribute that says 'optimize the heck out of this routine', and your definition of heck would be a parameter to the optimizer.

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

[Performance](https://quotesby.net/Larry-Wall/performance/)[Optimization](https://quotesby.net/Larry-Wall/optimization/)[Traits](https://quotesby.net/topics/traits/)

[WhatsApp (opens in a new tab)](https://wa.me/?text=%E2%80%9CAs%20someone%20pointed%20out%2C%20you%20could%20have%20an%20attribute%20that%20says%20%27optimize%20the%20heck%20out%20of%20this%20routine%27%2C%20and%20your%20definition%20of%20heck%20would%20be%20a%20parameter%20to%20the%20optimizer.%E2%80%9D%20%E2%80%94%20Larry%20Wall%20https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F117%2F)[X (opens in a new tab)](https://twitter.com/intent/tweet?text=%E2%80%9CAs%20someone%20pointed%20out%2C%20you%20could%20have%20an%20attribute%20that%20says%20%27optimize%20the%20heck%20out%20of%20this%20routine%27%2C%20and%20your%20definition%20of%20heck%20would%20be%20a%20parameter%20to%20the%20optimizer.%E2%80%9D%20%E2%80%94%20Larry%20Wall&url=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F117%2F)[Facebook (opens in a new tab)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F117%2F)

## About this quote

What does it mean?One could add an attribute to a routine that requests aggressive optimization, with the definition of 'aggressive' being configurable.In plain termsAdd an attribute to request strong optimization, configurable by the optimizer.What can you take from it?Make optimization levels adjustable via metadata.

### Where it applies

- compiler design
- performance‑critical code

### Putting it to work

- define an @optimize attribute
- expose aggressiveness as a parameter

### Questions to consider

- How can you expose optimizer parameters safely?
- What defaults should be used?

### Another view

Requires compiler support; not all languages allow it.

## More from Larry Wall

1. > The choice of approaches could be made the responsibility of the programmer.

[Permalink to quote \#116](https://quotesby.net/Larry-Wall/116/ "Permalink to quote 116")
2. > If you're going to define a shortcut, then make it the base \[sic\] darn shortcut you can.

[Permalink to quote \#118](https://quotesby.net/Larry-Wall/118/ "Permalink to quote 118")
3. > You tell it that it's indicative by appending $!. That's why we made $! such a short variable name, after all. :-)

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

## Related quotes

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

[Larry Wall](https://quotesby.net/Larry-Wall)[Larry Wall quote \#111](https://quotesby.net/Larry-Wall/111/ "Permalink to quote 111")
2. > It's hard to tune heavily tuned code. :-)

[Larry Wall](https://quotesby.net/Larry-Wall)[Larry Wall quote \#178](https://quotesby.net/Larry-Wall/178/ "Permalink to quote 178")
3. > Will the people in the cheaper seats clap your hands? And the rest of you, if you'll just rattle your jewelry.

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

```json
{
    "@context": "https://schema.org",
    "@type": "Quotation",
    "text": "As someone pointed out, you could have an attribute that says 'optimize the heck out of this routine', and your definition of heck would be a parameter to the optimizer.",
    "url": "https://quotesby.net/Larry-Wall/117/",
    "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 #117",
            "item": "https://quotesby.net/Larry-Wall/117/"
        }
    ]
}
```
