You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by Timothy Farkas <ti...@datatorrent.com> on 2015/12/01 06:05:18 UTC

Re: fastutil takes 17mb, can we exclude this jar?

Thanks Chinmay,

There are also some maven plugin alternatives which can do something
similar except they don't auto discover the classes that need to be pulled
out of the jar.
http://stackoverflow.com/questions/13142511/unpack-dependency-and-repack-classes-using-maven

We are stuck with fast util until the next major version of malhar since it
has creeped into the signatures of some methods. For now I can manually use
auto jar to discover the classes to repack, and then list those classes to
be repacked for the fastutil dependency in the maven shade plugin. An
example of this can be included in the demos, so if someone runs into an
issue with large app packages they will have cut and paste modification to
their pom which will resolve it. The long term solution will be to replace
fast util with another library, I think the best contender for that now is
mahout.

On Fri, Nov 27, 2015 at 10:39 PM, Chinmay Kolhatkar <chinmay@datatorrent.com
> wrote:

> How about using AutoJar?
> http:// <http://autojar.sourceforge.net/en_d/index.html>
> autojar.sourceforge.net <http://autojar.sourceforge.net/en_d/index.html>/
> <http://autojar.sourceforge.net/en_d/index.html>en
> <http://autojar.sourceforge.net/en_d/index.html>_d/
> <http://autojar.sourceforge.net/en_d/index.html>index.html
> <http://autojar.sourceforge.net/en_d/index.html>
>
> From the looks of it, this seems go pick only those classes which are
> required.
>
> Fastutils also mentions about it to deal with the problem of large jar file
> size:
> http://fastutil.di.unimi.it/#install
>
> -Chinmay.
> In spite of the qualities of Mahout's collections, my guess is that
> fastutil will be more developed.
>
>
>
> On Fri, Nov 27, 2015 at 6:09 AM, Timothy Farkas <ti...@datatorrent.com>
> wrote:
>
> > Thanks Ted for providing an alternative! I will look into replacing
> > fastutil with it.
> >
> > On Thu, Nov 26, 2015 at 3:09 AM, Ted Dunning <te...@gmail.com>
> > wrote:
> >
> > > On Thu, Nov 26, 2015 at 5:46 PM, Timothy Farkas <ti...@datatorrent.com>
> > > wrote:
> > >
> > > > There are not very many
> > > > replacement options the only Apache license alternative is hppc which
> I
> > > > think is underdeveloped.
> > > >
> > >
> > > Mahout Collections as well.
> > >
> >
>