Hey everyone!! ![]()
I’m working on a HUGE update to the SAMMY extension. There will be no more manual phonetic writing (You can just type normally and the program will pronounce it correctly, like google translate) and I’m looking into a way of having that conversion in makecode rather than on my website.
The problem I’m trying to solve is that the data set of words and their pronunciations is HUGE (Over 130,000 lines of text, 3.6 Megabytes of plain text) so just storing it in the extension would take up a ton of storage.
However, I heard of this cool compression trick MakeCode uses…
It should mean that if there’s an unused function in a user’s code, it isn’t compiled and won’t affect the storage.
The wiki page linked mentions it is used on functions, so my idea on how to use this technique would be to load all of the text used in the program into one used function and leave the rest in an unused function that won’t be compiled, but I’m not sure how to do that in MakeCode.
Do any of you know if this could be applied to a data set? (And @richard @WoofWoof for good measure
)