@@ -34,7 +34,7 @@ a corresponding assembly language, and an interface to interact with the hosting
34
34
main goal is to enable applications with high performance requirements to run on web pages. Of course,
35
35
its instruction format is also designed to be able to run on other platforms.
36
36
37
- The WebAssembly virtual machine has better performance than JavaScript because WebAsembly 's binary
37
+ The WebAssembly virtual machine has better performance than JavaScript because WebAssembly 's binary
38
38
format file has a more compact instruction structure, similar to ELF files (the most commonly used
39
39
binary instruction format on Unix systems, which is parsed by the loader and loaded into memory for
40
40
execution). WebAssembly is compiled into memory for execution by a specific runtime. The most common
@@ -100,13 +100,13 @@ the file name format is:
100
100
- * _ GOARCH
101
101
- * _ GOOS_GOARCH
102
102
103
- So the only thing we need do is to add * _ wasm.go, and mock an implemention based on the implemention for other platforms.
103
+ So the only thing we need do is to add * _ wasm.go, and mock an implementation based on the implementation for other platforms.
104
104
105
105
For case 2, the solution is same as case 1, because we can modify the third-party code directly.
106
106
107
107
For case 3 and case 4, we can’t modify the code directly. There are 3 solutions:
108
108
109
- - Open issues for these repos, and ask their owners to support WebAseembly
109
+ - Open issues for these repos, and ask their owners to support WebAssembly
110
110
- Advantage: we don’t need to do it ourselves, and we can keep up with upstream
111
111
- Disadvantage: some repos have been archived, and some are no longer maintained, nobody will reply our issue
112
112
- Clone these repos to pingcap org and modify their code, then switch the reference of TiDB to the new repos.
0 commit comments