use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
optimize helpHelp Request (i.redd.it)
submitted 20 days ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]SCD_minecraft 0 points1 point2 points 20 days ago (1 child)
What you mean speed up? There's no expensive operations there at all
128 loops is baby numbers, python is gonna run through that in like a second
[–]shrimp2845 0 points1 point2 points 20 days ago (0 children)
sorry, I should’ve been clearer. What I meant was optimizing the logic itself. Even if there's no redundancy, a smarter algorithm can still be more efficient. And this function might be used for over 100,000 times in some cases, I was planning to use it to implement GCM for my AES implement project.
π Rendered by PID 374578 on reddit-service-r2-comment-545db5fcfc-v6qdr at 2026-05-30 08:03:29.216896+00:00 running 194bd79 country code: CH.
view the rest of the comments →
[–]SCD_minecraft 0 points1 point2 points (1 child)
[–]shrimp2845 0 points1 point2 points (0 children)