Skip to content

Comments

perf: reduce number of requests for username skin lookups#125

Merged
Cherry merged 1 commit intomasterfrom
perf/username-lookup-improve
Dec 3, 2025
Merged

perf: reduce number of requests for username skin lookups#125
Cherry merged 1 commit intomasterfrom
perf/username-lookup-improve

Conversation

@Cherry
Copy link
Member

@Cherry Cherry commented Dec 3, 2025

In the last 30 days, more than 30% of requests to Crafthead were using a username instead of a UUID.

Previously, Crafthead would hit Mojang to get this information directly, but recently we swapped to PlayerDB for faster lookups. PlayerDB returns all the needed information in a single request, but we never fully refactored Crafthead to pass this through, so it was doing two round-trips to PlayerDB instead of one, for any username requests.

This will improve performance for any uncached username image requests.

@Cherry Cherry merged commit 670c4db into master Dec 3, 2025
1 check passed
@Cherry Cherry deleted the perf/username-lookup-improve branch December 3, 2025 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant