There's a function that exists in almost every Python codebase. It looks harmless:



def get_trades(symbol: str) -> list[dict]:
results = []
for record in enormous_database_cursor:
if record["symbol"] == symbol:
results.append(record)
return results

trades = get_trades("AAPL") # 💀 Waits. Waits. Waits. Then...