@yurique - Congrats! (Also--let me know if you want some Scala performance tips. The difference shouldn't be that big if you're trying to make the Scala fast, but it is if you're doing a lot of stuff generically.)

I have a map enum enum MapResult<T, U> { BTree(BTreeMap<T, U>), Hash(HashMap<T, U>) } (thanks to Thiez!). I'm requiring Map<String, String> as the argument in my method, that all works. what I'm wondering is if there's any way to access the map in a DRY way?

Question about threads in rust - I spawned a thread that runs a udpsocket, listening with set_nonblocking(true) in a loop. I notice that this thread now quickly takes up 100% of the cpu. Would there be some resources I could go through to figure out why this is happening?

sorry I went afk while you were helping me @tanriol ! basically I have a series of structs representing lists of data, and how that data is stored depends on the specific implementation.. basically HashMapby default, but in some cases I use BTreeMap because occasionally ordering matters

probably premature optimisation, but I'm more curious than anything as I'm just doing this project to get to know Rust better

I'm aware it'd probably just be simpler to always use BTreeMap :tongue: