PrimaShouji / Prima2

The Discord bot.
Apache License 2.0
0 stars 4 forks source link

Convert more things to Rust or Go #35

Closed karashiiro closed 3 years ago

karashiiro commented 3 years ago

The bot's memory usage is over 100MB per .NET process, and only 10-20MB per Go or Rust process. The application will be much more efficient if I rewrite some things in those languages. Separating things into different deployment units is also good for uptime.

The main drawback is that the DB models need to be rewritten in each language I write in, so it might be best to limit this to systems that don't touch the DB, or that can have entirely separate DB models.

This also isn't worthwhile unless I'm completely dismantling .NET processes, so this should only be done to… the queue module? That seems like the simplest unit to apply this to.

karashiiro commented 3 years ago

I also want the language bar on the repo to be more colorful 😶