git ssb

1+

Daan Patchwork / manyverse



Commit 9b2de0666b0124246ca0dad47aa8d00ed9970728

ux: speed up initial sync by 5x or more

Use WebAssembly libsodium from libsodium-wrappers (inside
sodium-browserify (which in turn is inside chloride)).
Andre Staltz committed on 10/16/2018, 9:15:10 AM
Parent: 6af42c576ee45a4fc4f83d3da41067f86481bf71

Files changed

package-lock.jsonchanged
src/nodejs-project/loader.tschanged
src/nodejs-project/package-lock.jsonchanged
src/nodejs-project/package.jsonchanged
package-lock.jsonView
The diff is too large to show. Use a local git client to view these changes.
Old file size: 992502 bytes
New file size: 992642 bytes
src/nodejs-project/loader.tsView
@@ -20,5 +20,7 @@
2020 import os = require('os');
2121 // Hack required because of https://github.com/dominictarr/noderify/issues/20
2222 os.homedir = () => __dirname;
2323 process.cwd = () => __dirname;
24+process.env = process.env || {};
25+process.env.CHLORIDE_JS = 'yes'; // Use WebAssembly libsodium
2426 require('./index');
src/nodejs-project/package-lock.jsonView
The diff is too large to show. Use a local git client to view these changes.
Old file size: 219773 bytes
New file size: 219913 bytes
src/nodejs-project/package.jsonView
@@ -5,8 +5,9 @@
55 "dependencies": {
66 "@staltz/sbot-gossip": "1.1.6",
77 "bindings-noderify-nodejs-mobile": "10.3.0",
88 "bufferutil": "3.0.1",
9+ "chloride": "2.2.10",
910 "deferred-leveldown": "4.0.1",
1011 "delay": "3.1.0",
1112 "encoding-down": "5.0.2",
1213 "estimate-progress": "1.0.0",

Built with git-ssb-web