Skip to content

performance bottlenecks#233

Merged
techmahedy merged 1 commit intodoppar:3.xfrom
techmahedy:techmahedy-3.x
Mar 25, 2026
Merged

performance bottlenecks#233
techmahedy merged 1 commit intodoppar:3.xfrom
techmahedy:techmahedy-3.x

Conversation

@techmahedy
Copy link
Copy Markdown
Member

This PR addresses performance bottlenecks

Race Condition Fix

// ADDED: Exponential backoff with jitter
$baseDelay = 10000 * (2 ** ($retries - 1)); // 10ms, 20ms, 40ms, 80ms
$jitter = random_int(0, $baseDelay / 4); // ±25% jitter
usleep($baseDelay + $jitter);

@techmahedy techmahedy merged commit 8a1b477 into doppar:3.x Mar 25, 2026
27 checks passed
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