Skip to content

Commit bafcb4e

Browse files
committed
Optimized the load time for leaderboard data
1 parent 8f70b75 commit bafcb4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/statsProvider.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ interface CommunityStatsProviderProps {
9494

9595
const GITHUB_ORG = "recodehive";
9696
const POINTS_PER_PR = 10;
97-
const MAX_CONCURRENT_REQUESTS = 8;
98-
const CACHE_DURATION = 5 * 60 * 1000; // 5 minutes cache
99-
const MAX_PAGES_PER_REPO = 20;
97+
const MAX_CONCURRENT_REQUESTS = 15;
98+
const CACHE_DURATION = 20 * 60 * 1000; // 20 minutes cache
99+
const MAX_PAGES_PER_REPO = 10;
100100

101101
// Function to calculate points based on PR labels
102102
const calculatePointsForPR = (labels?: Array<{ name: string }>): number => {

0 commit comments

Comments
 (0)