Skip to content

Conversation

@YasirAlibrahem
Copy link

Objective

Enhance performance when reading HTTP response content chunks.

Changes

  • A minor performance enhancement to the HTTP response content read loop in the convert_response method, that increases the chunk size from 512 bytes to 64KB.
  • 64 KB aligns with industry best practices as a common chunk size in computer networking protocols, balancing memory usage and throughput.
  • 64 KB is consistent with the chunk size proposed in Perf: Optimize non-seekable stream buffering using shutil.copyfileobj #1510
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant