Blackrock Engineering
Read post

Solving the Mystery of the Slow Hash Table

The post discusses a case study from Aladdin Wealth Tech, detailing how they identified and fixed a performance issue with a Java hash table handling very large portfolios in an Apache Spark job. It was discovered that hash collisions in the Apache Commons Lang3 Pair class were causing quadratic time complexity (O(N2)). By restructuring their map keys and avoiding the use of problematic hash functions, they restored the expected performance. This experience underscores the importance of understanding data structures and their underlying mechanics to prevent such issues.

    #apache-spark#general-programming#java#performance
Jul 29, 2024•11m read time•From engineering.blackrock.com
Post cover image
Table of contents
Solving the Mystery of the Slow Hash TableVery Large PortfoliosJMH BenchmarkPosition ContributorsHash Table BasicsHash CollisionThe FixLessons learned
35 Impressions
Blackrock Engineering's image
Blackrock Engineering

BlackRock is a global investment management corporation. Readers can learn about finance, investment...

139 Followers

•

9 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard