Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #10049
| Newsgroups | comp.lang.java.programmer |
|---|---|
| From | Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> |
| Subject | Re: alias for Integer |
| References | <21374513.220.1321627842805.JavaMail.geo-discussion-forums@yqmj32> <12712433.869.1321630449979.JavaMail.geo-discussion-forums@prmf13> <19404286.1644.1321633587044.JavaMail.geo-discussion-forums@yqhd1> |
| Message-ID | <slrnjcd7a8.fvg.avl@gamma.logic.tuwien.ac.at> (permalink) |
| Date | 2011-11-18 18:00 +0000 |
jrobinss <julien.robinson2@gmail.com> wrote: > This is a large piece of code, not extraordinary but still a > reasonable size, and I didn't write it. I end up manipulating > indexes all over the place, so that I have for example a table > (or map or whatever) that associates database indexes to matrix > indexes, or identifiers to indexes, etc. These are all ints or > Integers, and take part in ringamaroles of loops, indexes of > indexes of arrays of arrays and such joyous constructs. In short, > it's a lot of ints and hard to understand. My comment will not be much of help for this part of your problem, but I'll mention it anyway, for the other part of your problem. There exist third-party libraries (I think from apache) that offer variants of the usual JSL collection-classes - but for primitive types. So, just in case it turns out, that most of the slowness comes from boxing and unboxing, then having a look at those libraries might help. I haven't used them, myself, though, so do not really know, if they are indeed faster... just fwiw.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
alias for Integer jrobinss <julien.robinson2@gmail.com> - 2011-11-18 06:50 -0800
Re: alias for Integer markspace <-@.> - 2011-11-18 07:11 -0800
Re: alias for Integer Roedy Green <see_website@mindprod.com.invalid> - 2011-11-18 07:32 -0800
Re: alias for Integer Lew <lewbloch@gmail.com> - 2011-11-18 07:34 -0800
Re: alias for Integer jrobinss <julien.robinson2@gmail.com> - 2011-11-18 08:26 -0800
Re: alias for Integer Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-11-18 18:00 +0000
Re: alias for Integer markspace <-@.> - 2011-11-18 10:17 -0800
Re: alias for Integer Roedy Green <see_website@mindprod.com.invalid> - 2011-11-18 20:30 -0800
Re: alias for Integer Roedy Green <see_website@mindprod.com.invalid> - 2011-11-18 20:23 -0800
Re: alias for Integer Jim Janney <jjanney@shell.xmission.com> - 2011-11-18 13:14 -0700
Re: alias for Integer Patricia Shanahan <pats@acm.org> - 2011-11-18 12:43 -0800
Re: alias for Integer jrobinss <julien.robinson2@gmail.com> - 2011-11-21 01:50 -0800
Re: alias for Integer Robert Klemme <shortcutter@googlemail.com> - 2011-11-21 20:58 +0100
Re: alias for Integer David Lamb <dalamb@cs.queensu.ca> - 2011-11-21 15:38 -0500
csiph-web