[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

speed up



Hi,

If your version of soot is 1.0.0.dev.25 or less, paste the following into
soot/util/HashChain.java ... I estimate that this speeds soot up by about
9% on a medium sized benchmark (compress) 


    public boolean contains( Object o)
    {
        return map.containsKey( o);
    }

    public boolean containsAll( Collection c)
    {
        Iterator it = c.iterator();
        while (it.hasNext())
            if (!(map.containsKey( it.next())))
                return false;
        
        return true;
    }


later,

--jerome

------------------------------------------------------------------
 | Jerome Miecznikowski                    jerome@cs.mcgill.ca |
 | School of Computer Science        -> jerome@sable.mcgill.ca |
 | McGill University        http://www.sable.mcgill.ca/~jerome |
 | Montreal, Canada        acaps lab: (514) 398-7071 ext. 4657 |
 `-------------------------------------------------------------'