| OLD | NEW |
| 1 ################################### | 1 ################################### |
| 2 Native Client Manifest (nmf) Format | 2 Native Client Manifest (nmf) Format |
| 3 ################################### | 3 ################################### |
| 4 | 4 |
| 5 .. contents:: | 5 .. contents:: |
| 6 :local: | 6 :local: |
| 7 :backlinks: none | 7 :backlinks: none |
| 8 :depth: 2 | 8 :depth: 2 |
| 9 | 9 |
| 10 Overview | 10 Overview |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // url is required | 70 // url is required |
| 71 "url": "url_to_my_bitcode_bc", | 71 "url": "url_to_my_bitcode_bc", |
| 72 | 72 |
| 73 // optlevel is optional | 73 // optlevel is optional |
| 74 "optlevel": 0 | 74 "optlevel": 0 |
| 75 } | 75 } |
| 76 } | 76 } |
| 77 } | 77 } |
| 78 } | 78 } |
| 79 | 79 |
| 80 .. _pnacl_nmf_optlevels: |
| 81 |
| 80 Portable Native Client applications can also specify an ``optlevel`` field. | 82 Portable Native Client applications can also specify an ``optlevel`` field. |
| 81 The ``optlevel`` field is an optimization level *hint*, which is a number | 83 The ``optlevel`` field is an optimization level *hint*, which is a number |
| 82 (zero and higher). Higher numbers indicate more optimization effort. | 84 (zero and higher). Higher numbers indicate more optimization effort. |
| 83 Setting a higher optimization level will improve the application's | 85 Setting a higher optimization level will improve the application's |
| 84 performance, but it will also slow down the first load experience. | 86 performance, but it will also slow down the first load experience. |
| 85 The default is ``optlevel`` is currently ``2``, and values higher | 87 The default is ``optlevel`` is currently ``2``, and values higher |
| 86 than 2 are no different than 2. If compute speed is not as important | 88 than 2 are no different than 2. If compute speed is not as important |
| 87 as first load speed, an application could specify an ``optlevel`` | 89 as first load speed, an application could specify an ``optlevel`` |
| 88 of ``0``. Note that ``optlevel`` is only a *hint*. In the future, the | 90 of ``0``. Note that ``optlevel`` is only a *hint*. In the future, the |
| 89 Portable Native Client translator and runtime may *automatically* choose | 91 Portable Native Client translator and runtime may *automatically* choose |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 required to load the Native Client application. | 267 required to load the Native Client application. |
| 266 | 268 |
| 267 .. _nmf_url_resolution: | 269 .. _nmf_url_resolution: |
| 268 | 270 |
| 269 URL resolution | 271 URL resolution |
| 270 -------------- | 272 -------------- |
| 271 | 273 |
| 272 All URLs contained in a manifest are resolved relative to the URL of | 274 All URLs contained in a manifest are resolved relative to the URL of |
| 273 the manifest. If the manifest was specified as a data URI, the URLs must | 275 the manifest. If the manifest was specified as a data URI, the URLs must |
| 274 all be absolute. | 276 all be absolute. |
| OLD | NEW |