nodules / terror

Base error class which will help you organize errors, generate informative logs and as result grep logs more effectively
MIT License
25 stars 7 forks source link

1.0 dev #20

Closed kaero closed 9 years ago

kaero commented 9 years ago

Significant changes:

C'mon, buddies, lets review it!

\cc @ruslankerimov @Flackus @narqo @an9eldust @isquariel @miripiruni @ZooBestik

miripiruni commented 9 years ago

And how about README.md?

kaero commented 9 years ago

And how about README.md?

It will be updated after review, if API changes will be accepted.

kaero commented 9 years ago

:up:

narqo commented 9 years ago

Looks good, as I can tell – :snowflake:

ruslankerimov commented 9 years ago

:8ball:

kaero commented 9 years ago

@narqo @ruslankerimov Thanks a lot!

Anybody more? :)

an9eldust commented 9 years ago

Bunch of v8 optimization bailouts avoided, especially deoptimization of constructors;

Are there any measurements? How much we gonna shave?

kaero commented 9 years ago

@an9eldust

Are there any measurements?

Benchmarks code and results

How much we gonna shave?

Nothing, you will be shaved instead! :smirk_cat:

As you can see in the results, the performance of Terror.createError and Terror instantiation in general are drastically decreased on node.js 0.10. It's because of usage of Error.catureStackTrace and stack trace correction in the createError method to get clean stacktraces. The reason is deoptimizations in v8 internals, which was mostly (but not finally) fixed in the version used for node.js 0.11, where we can see at least the same or higher performance in benchmarks of instantiation.

kaero commented 9 years ago

@an9eldust oh, and there is still one deoptimization in ctor, which caused by v8 issue https://code.google.com/p/v8/issues/detail?id=3167

kaero commented 9 years ago

@an9eldust So all fixes, which we have, helps to don't fall on floor with stacktraces capturing, and make possible to be faster in the future. Sad, but true..

an9eldust commented 9 years ago

@kaero thx. The rest looks good to me, btw.

kaero commented 9 years ago

@Flackus @miripiruni readme has been updated, review it, plz.

https://github.com/nodules/terror/blob/1.0-dev/README.md

Final countdown for 1.0 :clock10:

kaero commented 9 years ago

:birthday: :smiley_cat:

Flackus commented 9 years ago

sup :+1:

Flackus commented 9 years ago

When will you publish 1.0.0 package?

kaero commented 9 years ago

@Flackus I've planed to try to integrate new terror into some modules (asker, for example) to test it more, and release the package in the next one or two days.

kaero commented 9 years ago

1.0.0 is finally published!