Hello Kirsten,
Friday, December 29, 2006, 6:30:22 PM, you wrote:
I suggest *not* using these pragmas unless a combination of profiling
and reading intermediate code dumps suggests that foo -- and its
un-specialized nature -- is truly a bottleneck.
it's a matter of taste - and experience. may
Hello Grady,
Friday, December 29, 2006, 11:00:42 PM, you wrote:
I've performed some experiments in GHCi, and it looks like even for a
get essentially the same execution times no matter which of the
definitions below I use
you should compare ghc -O2 times, ghci is very different beast. and
Maybe it's simpler to add a lot of INLINE, but that can make a program
slower as well as faster. It's much better to profile and add them
where they are needed.
-- Lennart
On Dec 30, 2006, at 08:42 , Bulat Ziganshin wrote:
Hello Kirsten,
Friday, December 29, 2006, 6:30:22 PM, you
On 12/30/06, Bulat Ziganshin [EMAIL PROTECTED] wrote:
Hello Kirsten,
Friday, December 29, 2006, 6:30:22 PM, you wrote:
I suggest *not* using these pragmas unless a combination of profiling
and reading intermediate code dumps suggests that foo -- and its
un-specialized nature -- is truly a
I tried compiling, but I got a linker error:
/usr/lib/ghc-6.4.2/libHSrts.a(Main.o): In function `main':
(.text+0x2): undefined reference to `__stginit_ZCMain'
/usr/lib/ghc-6.4.2/libHSrts.a(Main.o): In function `main':
(.text+0x16): undefined reference to `ZCMain_main_closure'
collect2: ld
On 12/30/06, Grady Lemoine [EMAIL PROTECTED] wrote:
I tried compiling, but I got a linker error:
/usr/lib/ghc-6.4.2/libHSrts.a(Main.o): In function `main':
(.text+0x2): undefined reference to `__stginit_ZCMain'
/usr/lib/ghc-6.4.2/libHSrts.a(Main.o): In function `main':
(.text+0x16): undefined