You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have around 20000 URLs that should go to the sitemap. I am using an example from your readme, just without createGzip. Here is how it looks like:
When I have around 2000, 3000 URLs, it was working normally, but when I added more it was unacceptably slow. I started to investigate which part is causing the issue and realized that the problem is in streamToPromise function. Then I tried to replace your streamToPromise with stream-to-promise package, and everything was much faster.
This is the example, please check the response time, same data, just different streamToPromise:
response time using integrated streamToPromise
response time using third party streamToPromise
If you think this is the problem, I would be glad to submit PR and replace existing streamToPromise :)
Expected behavior
This should not happen, streapToPromise is a bottleneck for some reason.
Context:
Library Version 6.1.4
Typescript Version 3.7.5
Node Version 12.13.0
Additional context
I am using Nest framework
The text was updated successfully, but these errors were encountered:
@fr1sk That's odd. I'll try to reproduce it using the performance tests in the repo. I'd be happy if you opened a PR. I'd also love to know what's causing the slowdown.
Describe the bug
I have around 20000 URLs that should go to the sitemap. I am using an example from your readme, just without
createGzip
. Here is how it looks like:When I have around 2000, 3000 URLs, it was working normally, but when I added more it was unacceptably slow. I started to investigate which part is causing the issue and realized that the problem is in
streamToPromise
function. Then I tried to replace yourstreamToPromise
with stream-to-promise package, and everything was much faster.This is the example, please check the response time, same data, just different
streamToPromise
:response time using integrated
streamToPromise
response time using third party
streamToPromise
If you think this is the problem, I would be glad to submit PR and replace existing
streamToPromise
:)Expected behavior
This should not happen,
streapToPromise
is a bottleneck for some reason.Context:
Additional context
I am using Nest framework
The text was updated successfully, but these errors were encountered: