(v4) (Re)/Move Emoji Dict
csmir opened this issue · 3 comments
csmir commented
Currently, there are roughly 12000 strings being forced into memory in the core package (Emoji.cs), just to translate Discord emoji format to Unicode. On top of this, references are made to the same amount of strings in another dictionary that does this the other way around, and another 6000 for the values only.
Solutions:
- Use a web service to handle this, rather than hard-coding it into the library.
- Create an extension package so people can opt-in, rather than being forced to store these values in code even if they don't need it.
budgetdevv commented
Could also use web service to fetch initially, then cache fetched results locally for subsequent uses...thoughts?
csmir commented
Yea, that is the best way to implement it from a web perspective
SecondNewtonLaw commented
Wrap it in a Lazy< T >?