Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The thrift dependency is bloated #7

Open
Downchuck opened this issue Jan 4, 2016 · 6 comments
Open

The thrift dependency is bloated #7

Downchuck opened this issue Jan 4, 2016 · 6 comments

Comments

@Downchuck
Copy link

The npm thrift project is not packaged for library use, and it requires about 30 megs of space. It's fine for devDependencies but should not be used for production (distribution) builds.

This is just a copy of the whole thrift repo, basically:
https://www.npmjs.com/package/thrift

That's overkill, when we only need the JS thrift client.

@imjuni
Copy link
Owner

imjuni commented Jan 26, 2016

@Downchuck Your right, we don't need to whole thrift for jshs2. I will check it after change thrift to node-thrift.

@Downchuck
Copy link
Author

@imjuni I've not found a minimal distribution of thrift on npm. Have you had any success?

@imjuni
Copy link
Owner

imjuni commented Feb 3, 2016

@Downchuck I've to confused between node-thrift and thrift. I think [email protected] is more than suitable for jshs2. But I will find more suitable library for jshs2.

@Downchuck
Copy link
Author

@imjuni I've not found a thrift package that's appropriate. I think they both include the full set of source code for thrift, including code for go, java, php and python.

@Downchuck
Copy link
Author

@imjuni
Copy link
Owner

imjuni commented Feb 5, 2016

@Downchuck I was to check the apache/thrift#741, node-thrift 0.9.3 is not solve fat library problem. And I was to check apache/thrift@f264884, I see that commit log in this command,

> mkdir -p /tmp/thrift-module
> cp -r node_modules/thrift/lib/nodejs/{lib,README.md} /tmp/thrift-module
> du -sh /tmp/thrift-module
208K    /tmp/thrift-module

If you need compact library at this time, you make compact library self. jshs2 aim to general and convenience, not aged like another library. So I don't want fix it this time. Sorry about that. But I will check node-thrift version or update, I will apply that.

thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants