Viewing a single comment thread. View all comments

hcrx OP t1_ivxl2wd wrote

Good question! This is done on a spreadsheet with a table with the energy breakdown by source per country. Then it builds the emoji table when the country changes.

Having one build emoji table per country would be way too heavy, that’s why.

4

ztbwl t1_iw20pgd wrote

You have 8 numbers (for each energy source) per country - let's say it's a 64 bit number. There is a total of 195 countries on earth.

That's a total weight of about 12.5 KB.

Didn't want to rant, interesting solution though, was fun to discover - but the load times could be better.

1

hcrx OP t1_iw2ae03 wrote

It’s true, it should be faster. The backend of this is a spreadsheet (so is the FE) so it’s a bunch of Vlookups together to create grid.

1