tailcallhq / tailcall

High Performance GraphQL Runtime
https://tailcall.run
Apache License 2.0
1.3k stars 254 forks source link

feat: make dedupe faster at I/O level. #3028

Open laststylebender14 opened 1 month ago

laststylebender14 commented 1 month ago

Currently, for all deduplicated requests, we create a clone of the response, but we don't modify the cloned response. This results in redundant copies in memory and unnecessary overhead.

Proposed Solution:

Instead of cloning the response, we can keep a single copy of the response in memory and use it to construct the final response in synth. This approach will optimize both memory usage and performance by reducing duplication and overhead.

A similar approach has been implemented in PR #3025.

github-actions[bot] commented 1 week ago

Action required: Issue inactive for 30 days. Status update or closure in 7 days.

github-actions[bot] commented 2 days ago

Issue closed after 7 days of inactivity.

tusharmath commented 1 day ago

/bounty $120

algora-pbc[bot] commented 1 day ago

💎 $120 bounty • Tailcall Inc.

Steps to solve:

  1. Start working: Comment /attempt #3028 with your implementation plan
  2. Submit work: Create a pull request including /claim #3028 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

🙏 Thank you for contributing to tailcallhq/tailcall! 🧐 Checkout our guidelines before you get started. 💵 More about our bounty program.