Hi Steve,

> >  > Splitter and mkgmap are using different libs of fastutil, osmpbf and
> >  > protobuf. Maybe it would be a good thing to let them use the same libs.
> > I was not aware of that. The fastutil lib is quite out-aged now.
> > The protobuf lib is newer in mkgmap, osmpbf libs have different names
> > but equal content.
> > @Steve: I don't know the reason for that. Is it intended?
> 
> There is no particular reason. At one time we updated the mkgmap
> fastutil.jar so that the same one would work on both mkgmap and
> splitter.
> 
> The names are different mostly because splitter hasn't been converted to 
> use ivy.

I think we should update fastutil to 6.5.15 and use the latest pbf libs 
for both programs. 
Reg. fastutil:
I'd like to have a few more classes in it, so I've attached a small program 
that uses all classes which seem to be useful in splitter or mkgmap.

I don't know much about ivy. Is it a lot of work to change splitter to use it?

Gerd

                                          
package uk.me.parabola.splitter;

import it.unimi.dsi.fastutil.ints.Int2IntLinkedOpenHashMap;
import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectAVLTreeMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectLinkedOpenHashMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
import it.unimi.dsi.fastutil.ints.IntArrayList;
import it.unimi.dsi.fastutil.longs.Long2ObjectAVLTreeMap;
import it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap;
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap;
import it.unimi.dsi.fastutil.longs.LongArrayList;
import it.unimi.dsi.fastutil.shorts.ShortArrayList;


/**
 * @author GerdP
 */
public class UseFastutil{
        public static void main(String[] args) {
                if (args.length > 0)
                        return;
      
        }
        ShortArrayList shortArrayList;
        IntArrayList intArrayList;
        LongArrayList longArrayList;
        
        Int2IntOpenHashMap int2intOpenHashMap;
        Int2ObjectOpenHashMap<Short> int2ObjectOpenHashMap;

        Long2ObjectOpenHashMap<Short> long2ObjectOpenHashMap;
        
        Int2IntLinkedOpenHashMap int2intLinkedOpenHashMap;
        Int2ObjectLinkedOpenHashMap<Short> int2ObjectLinkedOpenHashMap;

        Long2ObjectLinkedOpenHashMap<Short> long2ObjectLinkedOpenHashMap;
        
        Int2ObjectAVLTreeMap<Short> int2ObjectAVLTreeMap;
        Long2ObjectAVLTreeMap<Short> long2ObjectAVLTreeMap;
        
} 
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to