Skip to content

Conversation

@vilgotf
Copy link
Member

@vilgotf vilgotf commented Nov 29, 2024

Instantiating these errors incur allocations (cloning event as well as creating the source String) so let's create them lazily instead of eagerly.

@github-actions github-actions bot added c-gateway Affects the gateway crate t-perf Improves performace labels Nov 29, 2024
Instantiating these errors incur allocations (cloning `event` as well as
creating the `source` String) so let's create them lazily instead of
eagerly.
@vilgotf vilgotf force-pushed the vilgotf/gateway-lazy branch from be8db76 to b89a66b Compare November 30, 2024 11:03
@vilgotf vilgotf enabled auto-merge (squash) November 30, 2024 11:03
@vilgotf vilgotf merged commit beedad3 into main Nov 30, 2024
9 checks passed
@vilgotf vilgotf deleted the vilgotf/gateway-lazy branch November 30, 2024 11:06
viztea pushed a commit to eara-bot/twilight that referenced this pull request Feb 15, 2025
Instantiating these errors incur allocations (cloning `event` as well as
creating the `source` String) so let's create them lazily instead of
eagerly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c-gateway Affects the gateway crate t-perf Improves performace

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants