aboutsummaryrefslogtreecommitdiffstats
path: root/teleterm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-23 13:41:56 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-23 13:41:56 -0500
commit383193179ab1a7613e7fe7521a120c5a6b9ce202 (patch)
tree419478f6a9a2af9d4c749bf87d3d109c3b474485 /teleterm
parent263e3e0255d14e0c8ab1e09d7721866cdef4a6a4 (diff)
downloadteleterm-383193179ab1a7613e7fe7521a120c5a6b9ce202.tar.gz
teleterm-383193179ab1a7613e7fe7521a120c5a6b9ce202.zip
remove unicode-normalization from the wasm build
this cuts about 30% off of the binary size, and should have almost no impact
Diffstat (limited to 'teleterm')
-rw-r--r--teleterm/Cargo.toml2
-rw-r--r--teleterm/static/teleterm_web.js47
-rw-r--r--teleterm/static/teleterm_web_bg.wasmbin705767 -> 485061 bytes
3 files changed, 24 insertions, 25 deletions
diff --git a/teleterm/Cargo.toml b/teleterm/Cargo.toml
index 774059e..f78eabe 100644
--- a/teleterm/Cargo.toml
+++ b/teleterm/Cargo.toml
@@ -50,7 +50,7 @@ ttyrec = "0.2"
url = "2"
users = "0.9"
uuid = { version = "0.8", features = ["v4"] }
-vt100 = "0.6"
+vt100 = "0.7"
[[bin]]
name = "tt"
diff --git a/teleterm/static/teleterm_web.js b/teleterm/static/teleterm_web.js
index 3fc5227..1ff1ff4 100644
--- a/teleterm/static/teleterm_web.js
+++ b/teleterm/static/teleterm_web.js
@@ -1,10 +1,6 @@
let wasm;
-function __wbg_elem_binding0(arg0, arg1, arg2) {
- wasm.__wbg_function_table.get(51)(arg0, arg1, arg2);
-}
-
const heap = new Array(32);
heap.fill(undefined);
@@ -21,6 +17,9 @@ function addHeapObject(obj) {
heap[idx] = obj;
return idx;
}
+function __wbg_elem_binding0(arg0, arg1, arg2) {
+ wasm.__wbg_function_table.get(52)(arg0, arg1, addHeapObject(arg2));
+}
function __wbg_elem_binding1(arg0, arg1, arg2) {
wasm.__wbg_function_table.get(52)(arg0, arg1, addHeapObject(arg2));
}
@@ -31,14 +30,14 @@ function __wbg_elem_binding3(arg0, arg1, arg2) {
wasm.__wbg_function_table.get(52)(arg0, arg1, addHeapObject(arg2));
}
function __wbg_elem_binding4(arg0, arg1, arg2) {
+ wasm.__wbg_function_table.get(51)(arg0, arg1, arg2);
+}
+function __wbg_elem_binding5(arg0, arg1, arg2) {
wasm.__wbg_function_table.get(52)(arg0, arg1, addHeapObject(arg2));
}
-function __wbg_elem_binding5(arg0, arg1) {
+function __wbg_elem_binding6(arg0, arg1) {
wasm.__wbg_function_table.get(31)(arg0, arg1);
}
-function __wbg_elem_binding6(arg0, arg1, arg2) {
- wasm.__wbg_function_table.get(52)(arg0, arg1, addHeapObject(arg2));
-}
function __wbg_elem_binding7(arg0, arg1, arg2, arg3, arg4) {
wasm.__wbg_function_table.get(17)(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));
}
@@ -897,14 +896,14 @@ function init(module) {
imports.wbg.__widl_f_warn_1_ = function(arg0) {
console.warn(getObject(arg0));
};
- imports.wbg.__wbindgen_closure_wrapper791 = function(arg0, arg1, arg2) {
+ imports.wbg.__wbindgen_closure_wrapper780 = function(arg0, arg1, arg2) {
const state = { a: arg0, b: arg1, cnt: 1 };
const real = (arg0) => {
state.cnt++;
const a = state.a;
state.a = 0;
try {
- return __wbg_elem_binding3(a, state.b, arg0);
+ return __wbg_elem_binding5(a, state.b, arg0);
} finally {
if (--state.cnt === 0) wasm.__wbg_function_table.get(32)(a, state.b);
else state.a = a;
@@ -915,14 +914,14 @@ function init(module) {
const ret = real;
return addHeapObject(ret);
};
- imports.wbg.__wbindgen_closure_wrapper694 = function(arg0, arg1, arg2) {
+ imports.wbg.__wbindgen_closure_wrapper671 = function(arg0, arg1, arg2) {
const state = { a: arg0, b: arg1, cnt: 1 };
const real = (arg0) => {
state.cnt++;
const a = state.a;
state.a = 0;
try {
- return __wbg_elem_binding2(a, state.b, arg0);
+ return __wbg_elem_binding4(a, state.b, arg0);
} finally {
if (--state.cnt === 0) wasm.__wbg_function_table.get(32)(a, state.b);
else state.a = a;
@@ -933,14 +932,14 @@ function init(module) {
const ret = real;
return addHeapObject(ret);
};
- imports.wbg.__wbindgen_closure_wrapper683 = function(arg0, arg1, arg2) {
+ imports.wbg.__wbindgen_closure_wrapper508 = function(arg0, arg1, arg2) {
const state = { a: arg0, b: arg1, cnt: 1 };
- const real = (arg0) => {
+ const real = () => {
state.cnt++;
const a = state.a;
state.a = 0;
try {
- return __wbg_elem_binding6(a, state.b, arg0);
+ return __wbg_elem_binding6(a, state.b, );
} finally {
if (--state.cnt === 0) wasm.__wbg_function_table.get(32)(a, state.b);
else state.a = a;
@@ -951,14 +950,14 @@ function init(module) {
const ret = real;
return addHeapObject(ret);
};
- imports.wbg.__wbindgen_closure_wrapper612 = function(arg0, arg1, arg2) {
+ imports.wbg.__wbindgen_closure_wrapper613 = function(arg0, arg1, arg2) {
const state = { a: arg0, b: arg1, cnt: 1 };
const real = (arg0) => {
state.cnt++;
const a = state.a;
state.a = 0;
try {
- return __wbg_elem_binding4(a, state.b, arg0);
+ return __wbg_elem_binding0(a, state.b, arg0);
} finally {
if (--state.cnt === 0) wasm.__wbg_function_table.get(32)(a, state.b);
else state.a = a;
@@ -969,14 +968,14 @@ function init(module) {
const ret = real;
return addHeapObject(ret);
};
- imports.wbg.__wbindgen_closure_wrapper508 = function(arg0, arg1, arg2) {
+ imports.wbg.__wbindgen_closure_wrapper684 = function(arg0, arg1, arg2) {
const state = { a: arg0, b: arg1, cnt: 1 };
- const real = () => {
+ const real = (arg0) => {
state.cnt++;
const a = state.a;
state.a = 0;
try {
- return __wbg_elem_binding5(a, state.b, );
+ return __wbg_elem_binding1(a, state.b, arg0);
} finally {
if (--state.cnt === 0) wasm.__wbg_function_table.get(32)(a, state.b);
else state.a = a;
@@ -987,14 +986,14 @@ function init(module) {
const ret = real;
return addHeapObject(ret);
};
- imports.wbg.__wbindgen_closure_wrapper670 = function(arg0, arg1, arg2) {
+ imports.wbg.__wbindgen_closure_wrapper692 = function(arg0, arg1, arg2) {
const state = { a: arg0, b: arg1, cnt: 1 };
const real = (arg0) => {
state.cnt++;
const a = state.a;
state.a = 0;
try {
- return __wbg_elem_binding0(a, state.b, arg0);
+ return __wbg_elem_binding2(a, state.b, arg0);
} finally {
if (--state.cnt === 0) wasm.__wbg_function_table.get(32)(a, state.b);
else state.a = a;
@@ -1005,14 +1004,14 @@ function init(module) {
const ret = real;
return addHeapObject(ret);
};
- imports.wbg.__wbindgen_closure_wrapper691 = function(arg0, arg1, arg2) {
+ imports.wbg.__wbindgen_closure_wrapper695 = function(arg0, arg1, arg2) {
const state = { a: arg0, b: arg1, cnt: 1 };
const real = (arg0) => {
state.cnt++;
const a = state.a;
state.a = 0;
try {
- return __wbg_elem_binding1(a, state.b, arg0);
+ return __wbg_elem_binding3(a, state.b, arg0);
} finally {
if (--state.cnt === 0) wasm.__wbg_function_table.get(32)(a, state.b);
else state.a = a;
diff --git a/teleterm/static/teleterm_web_bg.wasm b/teleterm/static/teleterm_web_bg.wasm
index 668c78b..df09ad8 100644
--- a/teleterm/static/teleterm_web_bg.wasm
+++ b/teleterm/static/teleterm_web_bg.wasm
Binary files differ