Skip to content
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

优化编译后文件尺寸 #3

Open
sqfasd opened this issue Jul 28, 2017 · 2 comments
Open

优化编译后文件尺寸 #3

sqfasd opened this issue Jul 28, 2017 · 2 comments

Comments

@sqfasd
Copy link
Member

sqfasd commented Jul 28, 2017

使用tweetnacl代替js-nacl之后,browserify-asch-min.js文件的尺寸从1.2M降低到587k
我感觉还能再优化
tweetnacl尺寸才几十k,不是瓶颈所在
其余几个依赖的库有,buffer,bytebuffer,bignum,crypto
加起来不应该那么大的
需要调查下什么原因
如果尺寸减少,对前端首次加载性能有很大提升
@yanyiwu

@yanyiwu
Copy link
Contributor

yanyiwu commented Jul 28, 2017

这个好赞,期待asch微信钱包。

@yanyiwu yanyiwu closed this as completed Jul 28, 2017
@yanyiwu yanyiwu reopened this Jul 28, 2017
@sqfasd
Copy link
Member Author

sqfasd commented Jul 29, 2017

把crypto库去掉了,换成fast-sha256,尺寸减少到265K
还能继续优化,bytebuffer可以去掉,用buffer代替,就是序列化麻烦点

a1300 pushed a commit to a1300/asch-js that referenced this issue Oct 19, 2018
fix merge conflict for "rename Dapp to Chain"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants