jco icon indicating copy to clipboard operation
jco copied to clipboard

Optimizing JS binding output size

Open guybedford opened this issue 2 years ago • 0 comments

When generating many functions with similar bindgen, there tends to be a lot of repeated code. This is by design of the bindgen process, and output size is not currently being optimized.

If we had either a post-analysis which could determine the shared functions, or a bindgen approach based on outputting functions or shared objects (eg enum switches for wasi error codes), that could reduce the bindgen output size considerably.

guybedford avatar Feb 22 '23 17:02 guybedford