diff options
| author | bors <bors@rust-lang.org> | 2018-06-28 11:20:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-06-28 11:20:41 +0000 |
| commit | 9f79d2f86af73da483f4fe8e2422c15c79221d32 (patch) | |
| tree | b7ecb398641e49cb195212763ae13c5d4a28a537 /src/liballoc | |
| parent | d84ad59710728c936edd7396e287d42f1e319cf1 (diff) | |
| parent | a1f8a6ce80a340d51074071c0d9e30eb14f65d25 (diff) | |
| download | rust-9f79d2f86af73da483f4fe8e2422c15c79221d32.tar.gz rust-9f79d2f86af73da483f4fe8e2422c15c79221d32.zip | |
Auto merge of #50997 - michaelwoerister:pre-analyze-filemaps, r=Mark-Simulacrum
Make FileMap::{lines, multibyte_chars, non_narrow_chars} non-mutable.
This PR removes most of the interior mutability from `FileMap`, which should be beneficial, especially in a multithreaded setting. This is achieved by initializing the state in question when the filemap is constructed instead of during lexing. Hopefully this doesn't degrade performance.
cc @wesleywiser
Diffstat (limited to 'src/liballoc')
0 files changed, 0 insertions, 0 deletions
