← All topics

performance optimization

1 capture, most recent first.

@evisdrenova

— saved image

Evis Drenova @evisdrenova · 7h
my  low hanging fruit checklist for code performance optimizations:

- is it sequential? can we parallelize/make it concurrent?
- can we increase concurrency? what is the trade-off?
- how many passes is it doing? can we do it in fewer?
- how many allocations is it doing? can we do fewer?
- is it batching? how big are the batches?
- is it batching? can/should we stream it?
- are we awaiting too long? can we do stuff in the await?
- can we early exit?
- how many threads are we spawning? too many? too few?
- are we using the right DSA? how is data stored in-mem?
- how many i/o calls are we making? can we make less?
Note from Claude Sonnet 5

A tweet listing a low-hanging-fruit checklist for code performance optimization (parallelism, passes, allocations, batching, early exit, threads, data structures, I/O calls).

performance optimizationprogrammingchecklistconcurrency