chiark / gitweb /
Make our regex scanner into a lazy_static.
authorSimon Tatham <anakin@pobox.com>
Tue, 2 Jan 2024 07:27:07 +0000 (07:27 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 2 Jan 2024 17:30:18 +0000 (17:30 +0000)
commit71fbc918761966c817250b2b074159fd3763f80f
tree8f889dd7210cc8b3008252dbb04557313f6af387
parent27f95acb4505b731bf3d592129137a4d4a2591b0
Make our regex scanner into a lazy_static.

That way we only construct it once per runtime, not once per Editor we
instantiate. I've just realised that that must be what's making some
of my half-written editor unit tests slow.
Cargo.toml
src/scan_re.rs