-
Notifications
You must be signed in to change notification settings - Fork 52
perf: remove asn1.js and use node-forge #166
Conversation
This seems to be failing on chrome 😢 I re-run both chrome jobs, but no luck! We need to investigate, because this would be a nice gain |
@vasco-santos aye, is still WIP, I’ve not even removed everything I need to in order to remove asn1.js yet! I just submitted the PR for visibility and intent. |
🎉 |
Should be ready for review now |
Looks like this is also working upstream at ipfs/js-ipfs#2785 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! This looks great ❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 looks good!
We are already using
asn1
fromnode-forge
in the code base. This PR removes theasn1.js
dependency and uses the code we already imported fromnode-forge
instead.It should remove ~20 KB (gzipped) from the bundle.
https://tools.ietf.org/html/rfc7518