go-pdk icon indicating copy to clipboard operation
go-pdk copied to clipboard

100kb larger size due to unicode tables

Open egonelbre opened this issue 2 years ago • 1 comments

I'm not sure whether to consider this just unfortunate, anyways...

Currently the go-pdk depends on github.com/valyala/fastjson and also strings, which end up bringing in all of the unicode tables. However, ideally for the minimal use, you wouldn't want the unicode tables to be included.

Although, I agree, it might be difficult to achieve in practice.

egonelbre avatar Oct 04 '23 08:10 egonelbre

One option here would be to move the http things to a separate package, e.g. github.com/extism/go-pdk/pdkhttp

egonelbre avatar Oct 04 '23 09:10 egonelbre

This appears to be covered in #23. but feel free to re-open if not. Or we can file a new issue.

bhelx avatar Jun 14 '24 21:06 bhelx

Ping @nilslice to be sure

bhelx avatar Jun 14 '24 21:06 bhelx

yea I'm good to close this -- if it becomes critical to save the bytes, we can move the http stuff into another package.

nilslice avatar Jun 14 '24 21:06 nilslice