poor performance on pipeline with buffers
See original GitHub issueHi everyone. I’m trying to insert into redis about 15k buffers but getting poor performance. But if I try to insert same amount of data using JSON.stringify it works fast.
const pipe = redis.pipeline();
users.map(user => {
pipe.set(`{users}:${user.id}`, UserModel.encode(user));
});
pipe.exec();
console.log("done");
on pipe.exec(); code gets freeze about for 10 seconds.
Update: UserModel is protobuf. But this does not matters: Buffer.from(JSON.stringify(user)) is also same.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Pipeline Buffering - Wiley Online Library
Buffer cycles make variable throughput cycles farther apart without introducing more slow cycle delays. The effect of this is to increase shadow coverage...
Read more >Pipelines and performance - virtualdub.org
If you don't have enough buffering between two stages then the pipeline will flood when the first stage writes to it, causing the...
Read more >Low performance when recording command buffers with ...
The writebuffer is a pointer to the secondary command buffer that will be recorded. The pipeline is a pointer to the graphics pipeline...
Read more >Performance Improvement from the GStreamer Perspective
The real-time performance is always measured relative to the pipeline clock and typically happens in the sinks when they synchronize buffers against the...
Read more >Chapter 28. Graphics Pipeline Performance - NVIDIA Developer
This is the cost of running the "pixel shader" or "fragment shader." Note that fragment shading and frame-buffer bandwidth are often lumped together...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @GGeorgi, Could you provide a reproducible example so I can test on my machine? I used the following code and the performance is good (v4.14.1):
Prints:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 7 days if no further activity occurs, but feel free to re-open a closed issue if needed.