Comments (6)
I'd really like to find out. Is it possible to get a bit more of the stack trace?
from fast-async.
Unfortunately there is no more stacktrace.
from fast-async.
Can you provide a minimal case that produces the same message?
from fast-async.
If you can pin this down to a minimal case, please let me know, otherwise I'll close it in a day or two as not-reproducible. Thanks.
from fast-async.
Weirdly enough, after applying the fix from #29 this issue went away. Sorry for not providing a small reproducible test-case as it was not trivial. I will re-open this issue if stumble upon this problem again.
Thanks for all the good work and have a great weekend.
PS. I'm getting about 4x speed up vs babel+bluebird for some recurring operations in my application. Great project. :)
PS2. I also quickly benchmarked native async
/await
in Node 7 and it appears it's around 10% slower than babel+bluebird. It appears fast-async
will not stop being relevant.
from fast-async.
Yep, still a long way to go to get generators faster. With node v7, raw performance results still favour nodent by about 3 times:
node --harmony-async-await ./nodent.js tests tests/semantics/perf.js
Total compile time: 214ms
- Test: perf using promiscuous
{es7:true} nodent native bluebird rsvp when promisejs.org promiscuous
Compiler flags Mean 159 413 576 539 443 445 406 929
lazyThenables,es7 100 100 - - - - - - -
es7 143 143 - - - - - - -
lazyThenables,wrapAwait,es7 223 223 - - - - - - -
wrapAwait,es7 170 170 - - - - - - -
promises 374 - 148 542 386 255 238 154 893
promises,noRuntime 335 - 123 497 339 214 195 133 846
wrapAwait,promises 502 - 181 534 448 256 268 177 1652
wrapAwait,promises,noRuntime 442 - 161 495 393 217 222 155 1450
generators 779 - 802 767 846 704 711 684 936
wrapAwait,generators 831 - 658 773 863 701 725 682 1414
engine,promises 525 - 519 536 532 519 520 514 533
engine,promises,noRuntime 524 - 513 533 531 521 521 526 526
engine,wrapAwait,promises 522 - 514 536 522 520 519 517 524
ine,wrapAwait,promises,noRuntime 525 - 513 544 528 521 531 522 516
Benchmark execution time: 0.860078 ms
from fast-async.
Related Issues (20)
- SyntaxError: Strict mode does not allow function declarations in a lexically nested statement HOT 1
- for ... of produces `Cannot read property 'length' of undefined` error HOT 2
- [Bug] 6.3.2 - Error: Cannot find module '@babel/helper-module-imports' HOT 6
- [bug] infinite recursion (stack overflow) with $super$N helper HOT 9
- [bug] Errors when transforming code with for-of loops HOT 15
- Babel v7: Env Preset + nodent breaks in Babel generator HOT 13
- ReferenceError: unknown node of type "Literal" with constructor "Object" HOT 2
- Cannot await non-Promises. HOT 5
- "await is a reserved word" HOT 2
- incorrect code when this is used in async function HOT 4
- Babel 7 version ignoring options? HOT 1
- Add support for alternative Promise implementations HOT 1
- Babel 7 code should use @babel/parser HOT 2
- Babel 7 "useRuntimeModule" HOT 4
- Babel 6/Webpack 3 Module build failed: ReferenceError: Unknown plugin "fast-async" HOT 1
- generators:false not honored - still outputs code using generators HOT 2
- How to translate async/await to built-in Promise?
- async/await with for...of cannot work
- `for await` is not supported to be transformed HOT 3
- Broken code for strict mode is generated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fast-async.