diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-08-17 07:42:20 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-08-17 07:42:20 +0200 |
| commit | 6631bc777affdbb371b64495c4aeb34b031cf7a1 (patch) | |
| tree | e3429ae656ad1472c0a2b5dcf38a1c95b293785a /crates/xa65/src/main.rs | |
| parent | 3d772470b09c4a8b78f526c3fd566c0aae1ab94f (diff) | |
| download | tools.nes-6631bc777affdbb371b64495c4aeb34b031cf7a1.tar.gz tools.nes-6631bc777affdbb371b64495c4aeb34b031cf7a1.zip | |
Use a buffered reader for incbin
Iterating via `bytes()` on a file is inefficient as the default
implementation calls `read` on each byte, which can be costly on bytes
which are not in memory like files. This is extra important for
statements like `incbin` as included files can be rather big.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'crates/xa65/src/main.rs')
0 files changed, 0 insertions, 0 deletions
