day 8 part 1 fixed, regex is slow af to compile... dont do that in a loop.

This commit is contained in:
RingOfStorms (Joshua Bell) 2023-12-08 01:20:59 -06:00
parent e4ab3fb81e
commit cab03a2ed5
3 changed files with 45 additions and 5 deletions

35
Cargo.lock generated
View file

@ -78,6 +78,7 @@ dependencies = [
"reqwest-retry",
"serde",
"serde_json",
"static_init",
"tiktoken-rs",
"tokio",
]
@ -260,6 +261,12 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "cfg_aliases"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e"
[[package]]
name = "chrono"
version = "0.4.31"
@ -1571,6 +1578,34 @@ dependencies = [
"windows-sys 0.48.0",
]
[[package]]
name = "static_init"
version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a2a1c578e98c1c16fc3b8ec1328f7659a500737d7a0c6d625e73e830ff9c1f6"
dependencies = [
"bitflags 1.3.2",
"cfg_aliases",
"libc",
"parking_lot 0.11.2",
"parking_lot_core 0.8.6",
"static_init_macro",
"winapi",
]
[[package]]
name = "static_init_macro"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "70a2595fc3aa78f2d0e45dd425b22282dd863273761cc77780914b2cf3003acf"
dependencies = [
"cfg_aliases",
"memchr",
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "strsim"
version = "0.10.0"