[Mondrian] RE: Eigenbase perforce change 12887 for review

Peter Tran ptran at prospricing.com
Fri Jun 19 13:02:48 EDT 2009


I haven't looked into Apache commons-primitives. Before these available, we made use of Colt libraries map features:

http://acs.lbl.gov/~hoschek/colt/api/cern/colt/map/package-summary.html

They made a huge difference in the GC time.  I would say yes, it was definitely worth the effort.

-Peter

-----Original Message-----
From: mondrian-bounces at pentaho.org [mailto:mondrian-bounces at pentaho.org] On Behalf Of Julian Hyde
Sent: Friday, June 19, 2009 11:50 AM
To: 'Mondrian developer mailing list'
Subject: [Mondrian] RE: Eigenbase perforce change 12887 for review

By the way, we use lists of integers, maps to and from integers, maps to
doubles, all over the code, and in some performance-critical areas. Java
autoboxing makes it easy to forget that every access to these structures
involves converting a primitive type to an object, often allocating an
object for the purpose.

I've been thinking of using apache commons-primitives for these structures.
(See
http://commons.apache.org/primitives/apidocs/org/apache/commons/collections/
primitives/IntList.html for instance.) Anyone have any experience with these
classes? Is it worth the effort?

Julian




More information about the Mondrian mailing list