-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Bluebird instead of Native Promise in RedisCacheAdapter #3359
Comments
try to post the performance bench of BlueBird or PR |
i ran the test suite with and without bluebird:
That's not really convincing me for the High performance expected from BB... |
machine parameters: first i ran the benchmark for InMemoryCache, cpu ran 100%. code like this:
my benchmark result as follow: InMemoryCache According to issue http://softwareengineering.stackexchange.com/questions/278778/why-are-native-es6-promises-slower-and-more-memory-intensive-than-bluebird i think new Promise result in slower permance,what do you think? |
I'd like it if we could substitue bluebird in as the promise library. both better performing and its got a richer api that I am getting used to having! things like mongo, elastic cache, etc. give one the option to configure in the promise lib of choice. not sure what's involved...yet |
Faster is not a given :/ that highly depends on the nodejs version. Using bluebird, you can swap it globally, and that doesn't require any change in parse-server. As for the new Promise pattern, well, that implies an extensive rewrite |
when query or update data, parse need to query from cacheAdapt frequently, and as benchmarks showing native is more slower when compared to bluebird. So should we use bluebird instead of Native Promise in RedisCacheAdapter?
In my tests via benchmark, use bluebird would highly improve performance.
The text was updated successfully, but these errors were encountered: