Unable to load image

Do YOU know why the emoji picker freezes rDrama?

If you look at the code, it's because for whatever reason, the emoji loader code creates an array that maps tags to emojis... but for some reason, they decided to implement this by storing an array of tags and then binary searching that array for EVERY TAG that must be updated -- consider that each of the 5,000 some emojis have multiple tags! Plus, they create multiple DOM elements for each emoji! This code has O(m * n * log(n)) complexity, where m is the average number of tags per emoji and n is the number of emojis. This code could very simply be sped up by using a hashmap (which is builtin with JS's Map) or by doing this work on the server and saving the result, so you would send back a JSON file like

{
    "tags": {
        "marsey": ["marseylove", "marseyfemboy", ...],
        "othertag": ["emoji1", "emoji2"....]
   }
}
81
Jump in the discussion.

No email address required.

Do not frick with the tags I will cry and shit and throw up I spent so long working on those

Jump in the discussion.

No email address required.

I was going to rewrite the whole JS modal file. Whether or not that actually gets finished depends if I'm getting drunk and/or railed tonight.

Jump in the discussion.

No email address required.

:#marseypass: or :#marseypass2: ?

Jump in the discussion.

No email address required.

why not just do it on the fricking backend like u said

Jump in the discussion.

No email address required.

ugh fine I guess I am your little pogchamp. I'll write it for you bb

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.