Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Explore BestHub

#List.contains

RSS feed
Follow or choose interest 7-day signal and related keywords

Latest articles

2 articles in the current browsing window, ordered by publication date.

Why 50K Records Took 40 Seconds: The Hidden Cost of List.contains() in Loops

A permission sync task processing 50,000 records ran in 40 seconds despite sub-second SQL queries; profiling revealed the bottleneck was an O(n²) List.contains() inside a stream filter, and replacing the List with a HashSet cut the diff calculation from 38 seconds to milliseconds, demonstrating how data structure choice dominates batch performance.

Up to 500 articles, 100 per page. The archive offers another way to explore older articles.