Stop using "Int" for microsecond delays in "base"
g9ks157k at acme.softbase.org
Wed Mar 30 20:47:37 CEST 2011
Am Mittwoch, den 30.03.2011, 20:00 +0200 schrieb Johan Tibell:
> On Wed, Mar 30, 2011 at 7:56 PM, Evan Laforge <qdunkan at gmail.com> wrote:
> > It's good for big data structures since it can be unpacked into the
> > constructor. I've seen space usage go down by 1/3 after an Integer ->
> > Int switch. Integer is a sum type so there's an extra two words of
> > overhead (if not mistaken, one for the tag, and one for the
> > indirection since it can't unpack).
> Yes. Integer is terrible for performance.
Can’t Integer be implemented in a more efficient way that it’s done
More information about the Libraries