Skip to content

Commit

Permalink
streaming: tune double buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Grok Compression committed Jan 23, 2025
1 parent 1542410 commit aa61ec4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/core/grok.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,7 @@ static void grkFree_file(void* p_user_data)
static grk_stream* grk_stream_create_stream(grk_stream_params* stream_params)
{
bool readStream = stream_params->read_fn;
size_t doubleBufferLen =
stream_params->double_buffer_len ? stream_params->double_buffer_len : 1024 * 1024;
size_t doubleBufferLen = 16 * 1024 * 1024;
if(stream_params->stream_len)
doubleBufferLen = std::min(doubleBufferLen, stream_params->stream_len);
auto stream = grk_stream_new(doubleBufferLen, readStream);
Expand Down

0 comments on commit aa61ec4

Please sign in to comment.