One weirdness: the binary size has gone up significantly. The same word lists are being stored: previously these were pulled in with `include_str!`, now they're being compiled in as static slices. Stripping the binary and a few other tricks get it close to what it was before, but not all the way. Another puzzle.
12.11.2022 09:38One weirdness: the binary size has gone up significantly. The same word lists are being stored: previously these were pulled in with...For context, the goal was to make `Petnames` avoid allocation when using the default dictionaries (https://github.com/allenap/rust-petname/issues/76). It still allocates when limiting word size or alliterating, but I'm going to deal with that as a separate problem.
12.11.2022 09:35For context, the goal was to make `Petnames` avoid allocation when using the default dictionaries...Last weekend I tried to figure out lifetime issues in https://github.com/allenap/rust-petname/issues/76 but without luck. I had help from Zeeshan (can't find his handle) but it was intractable.
I changed tack and simplified, and that seems to be working now. It's less elegant by some measures, but it's easier to understand.
This weekend I'll tidy up the code, update docs, etc. The public API hasn't changed so I can probably release with a minor version bump.
12.11.2022 09:34Last weekend I tried to figure out lifetime issues in https://github.com/allenap/rust-petname/issues/76 but without luck. I had help from...