24 minutes ago · Tech · hide · 0 comments

Caching something per class is one of the most ordinary things many libraries do. And a Class<?> looks like the perfect map key: there’s exactly one instance per class per loader, its identity hash is stable, and equals is identity comparison.

No comments yet. Log in to reply on the Fediverse. Comments will appear here.