Help with lagging location transition; optimization issue?

rainkius

Newcomer
Hello, I am looking for some help with a content patcher mod I made. I recently revamped it to include more location-based options and as I am inexperienced with CP (and coding in general) I basically just looked at others' mods and cobbled it together. As such, it's lagging on transitions because I'm sure I'm doing things inefficiently. A user very helpfully put details here: www.nexusmods.com/stardewvalley/mods/30227?tab=bugs

Additionally, I have a SVE-compatibility mod for the mod above that I need to add all the new options to, and was prepared to use Cross-Mod Compatibility Tokens (CMCT) to accomplish that, but I was worried I was going to make the lag that much worse. I know this is a non-trivial thing, but is there anyone more experienced who would be willing to glance over the code and make a few suggestions for optimization? And/or some best practice suggestions for using CMCT because it's brand new to me.

I have put both mods up on my github so it's easy to see the code and assets.
https://github.com/rainkius/Seaside-Interiors
https://github.com/rainkius/Seaside-Valley-Expanded
Thank you!
:aSDVemoteheart:
 
Top