about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-05-02 13:19:32 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-05-15 08:59:11 +1000
commitf2df861c7f35d8fe25ff9a2e9188ad90f8262188 (patch)
tree5fc3af898ea92a1272f1132a50998e0dcc23927b /compiler/rustc_codegen_llvm/src
parent18bfe5d8a9ca0e226171e98f8f4ef071790f3352 (diff)
downloadrust-f2df861c7f35d8fe25ff9a2e9188ad90f8262188.tar.gz
rust-f2df861c7f35d8fe25ff9a2e9188ad90f8262188.zip
Fix the `FileEncoder` buffer size.
It allows a variable size, but in practice we always use the default of
8192 bytes. This commit fixes it to that size, which makes things
slightly faster because the size can be hard-wired in generated code.

The commit also:
- Rearranges some buffer capacity checks so they're all in the same form
  (`x > BUFSIZE`).
- Removes some buffer capacity assertions and comments about them. With
  an 8192 byte buffer, we're not in any danger of overflowing a `usize`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions