<div dir="ltr">I'm stumped for a while.  I need to talk to a teddy bear.<div><br></div><div>I'd like to prefix all the DEFs for my HAnimJoints, HAnimSites, and HAnimSegments and all references to them with a prefix, say "Senior_"</div><div><br></div><div>Right now, I loop through the file, pulling in all HAnim DEF values into a HashMap, mapped from old DEF value to new DEF value.  Then I examine each line, trying to substitute the  "word" or occurrence of an old DEF value to the new DEF value.  I have a little loop that goes through the whole hash map for each line.  It is extremely slow.</div><div><br></div><div>I have thought of storing patterns in the hash map, but I've not done that  before.</div><div><br></div><div>Perhaps I should code this up in Rust or C?  Does someone know a good native hash map implementation for  Rust/C/C++ or something as fast?</div><div><br></div><div>Thanks!</div><div><br></div><div>John</div></div>