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"....]
}
}
Jump in the discussion.
No email address required.
@MURDERVANN try to code challenge fail!
Jump in the discussion.
No email address required.
stop bullying me
Jump in the discussion.
No email address required.
u gotta chill with that computer shit ive been getting laid ever since i stopped
Jump in the discussion.
No email address required.
what did you start doing instead
If I chill with the computer shit I'll just be left doing drugs in my room alone
Jump in the discussion.
No email address required.
throwing car batteries in to the ocean 💯
Jump in the discussion.
No email address required.
More options
Context
More options
Context
@ScaryHodor wants you to know that white extinction is long overdue and that includes you @BWC
Jump in the discussion.
No email address required.
Thanks for the update
@Transgender_spez
Jump in the discussion.
No email address required.
No problem, thanks for the chudding.
@ScaryHodor wants you to know that white extinction is long overdue and that includes you @BWC
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
More options
Context
More options
Context
More options
Context