a lot of days, I make a shitton of changes in successsion, and I don't wanna make the whole frontpage my changelog posts, so I don't post about them
this thread solves that, so from now on instead of making changelog posts, I'll make changelog comments here
click subscribe on this thread to get notified of changes
on desktop:
on mobile:
Edit: I'm still not gonna post about bugfixes tho, theres way too many
Jump in the discussion.
No email address required.
Please tell me that isn't the actual code
Jump in the discussion.
No email address required.
this is the fricking actual code
Jump in the discussion.
No email address required.
Jump in the discussion.
No email address required.
how would u write it then
Jump in the discussion.
No email address required.
Share a bit more of the context?
Jump in the discussion.
No email address required.
Jump in the discussion.
No email address required.
Am I right in thinking that you're looping through for every instance of the award (shenanigans with time, expiry and earlylife)? If so just determine a single multiplier and do something like
name = f"{'('*mult}{name}{')'*mult}"
To save yourself rewriting the string hundreds of times whenever a tard with 400 awards appears.
Jump in the discussion.
No email address required.
i think this would probably save like 0.01ms lol
Jump in the discussion.
No email address required.
Depends how well cached the award system is and how many people spam the award. It's the sort of thing that works well with sensible numbers but might be vulnerable to dramatards.
I'll stop being pedantic now
Jump in the discussion.
No email address required.
More options
Context
More options
Context
code obfuscation contest award
Jump in the discussion.
No email address required.
This is why I hate writing code on a phone at midnight.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
i didn't test this
completely removes the O(n) nonsense and saves a shitload of string allocations/copies. if you wanted to parameterize it so you can easily change the multipliers you could do that as well but since it's hardcoded in the existing code I figure it might as well be hardcoded here.
I even used tabs for you even though I think using tabs in python code is evil incarnate.
Jump in the discussion.
No email address required.
ty king, even though i think this change is fricking pointless and makes the fricking code harder to read, i added it anyway since u took the fricking time to write it
Jump in the discussion.
No email address required.
Jump in the discussion.
No email address required.
More options
Context
Even simpler:
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
More options
Context
More options
Context
Jump in the discussion.
No email address required.
More options
Context
More options
Context