---
title: BNNSGraph.CompileOptions.OptimizationPreference
framework: accelerate
role: symbol
role_heading: Structure
path: accelerate/bnnsgraph/compileoptions/optimizationpreference-swift.struct
---

# BNNSGraph.CompileOptions.OptimizationPreference

Constants that describe the compilation-optimization preference.

## Declaration

```swift
struct OptimizationPreference
```

## Overview

Overview Use the constants that this structure defines to specify whether the BNNS library compiles a graph that’s optimized either for performance or for a smaller footprint.

## Topics

### Optimization preferences

- [internalRepresentationSize](accelerate/bnnsgraph/compileoptions/optimizationpreference-swift.struct/internalrepresentationsize.md)
- [performance](accelerate/bnnsgraph/compileoptions/optimizationpreference-swift.struct/performance.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
