Our logo Kybercode
Home
Archive
Articles
Shared
Bits
About
Contact
Home
Archive Articles Shared Bits

About Contact
RSS
Search
Efficiency Today I Learned
Cooper Gidge on Nov 26, 2024.

Today I learned that print statements cost more than you think. I had a program that needed to perform a calculation...100 million times. I, in my wisdom, had it print what it was doing...100 million times.

When I ran it with print statements, it took over an hour to complete. When I removed the print statements, it took seconds.

It turns out even tiny bits of inefficiency can add up. Who would've guessed?

Previous Not Sure How I Feel About "Was This Helpful?" Widgets

By Cooper Gidge on Nov 29, 2024.

Next Introducing...Bits!

By Cooper Gidge on Nov 26, 2024.

Browse More
Not Sure How I Feel About "Was This Helpful?" Widgets

By Cooper Gidge on Nov 29, 2024.

To Scroll, To Stick, Or To Stay: Sidebars

By Cooper Gidge on Nov 23, 2024.

Building A Screenwriter App That Uses Markdown Syntax

By Cooper Gidge on Nov 23, 2024.

Featured
Logo Kybercode

All things about software and website development.

RSS
Resources
Home Archive Articles Shared Bits Topics
About
About Contact
Copyright © 2025 Kybercode
We're proud to say we don't track you.
Home
Archive
Articles
Shared
Bits