Logo
The best error message never shows up.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Array-processing Memes

Posts tagged with Array-processing

We Will Process Only Last 1000 Files They Said

php Programming Databases Backend Algorithms
10 months ago 461.3K views 0 shares
We Will Process Only Last 1000 Files They Said
When your manager says "just process the last 1000 files" but you're dealing with a PHP script that's about to iterate through 2 million files while comparing against a database of 1 million records. The script is literally pulling 1000 records with limit(1000) but then checking EACH of your 2 million files against those 1000 records with in_array() . That's a cool O(n²) operation that's going to take approximately checks notes forever to complete. Your server's CPU is already writing its resignation letter.

Today's picks

Handover

Handover

Programming
172.4M views 3 days ago
NordVPN

NordVPN

Sponsored
VPN
Internet Safety Rules PC Poster Computer Science Classroom Poster, Stem Technology Education Chart, Keyboard Coding Computer Lab Wall Art For Kids Class, Digital Keyboarding Posters for Communication Decorations (UNFRAMED) 11''x17''

Internet Safety Rules PC Poster Computer Science Classroom Poster, Stem Technology Education Chart, Keyboard Coding Computer Lab Wall Art For Kids Class, Digital Keyboarding Posters for Communication Decorations (UNFRAMED) 11''x17''

Affiliate
$8.59