[#290] — Florian Frank <flori@...>
Hi all,
5 messages
2002/08/03
[#297] GC longjmp macros — Michal Rokos <m.rokos@...>
Hi,
5 messages
2002/08/05
[#308] Q: OSSL in std. distr? — Michal Rokos <m.rokos@...>
Hi,
4 messages
2002/08/08
[#326] Implications of a #force_free method in Object? — Matthew Bloch <mattbee@...>
Hello;
8 messages
2002/08/19
[#328] Int vs Long — Michal Rokos <m.rokos@...>
Hi,
7 messages
2002/08/21
[#337] Int vs Long (2nd part) — Michal Rokos <m.rokos@...>
Hi,
7 messages
2002/08/22
[#340] Int vs Long #3 — Michal Rokos <m.rokos@...>
Hi,
9 messages
2002/08/22
[#344] Re: [Cleanup] Int vs Long #3
— nobu.nokada@...
2002/08/22
Hi,
[#348] Re: [Cleanup] Int vs Long #3
— Michal Rokos <m.rokos@...>
2002/08/23
Hello,
[#353] File (struct stat handling) — Michal Rokos <m.rokos@...>
Hello,
6 messages
2002/08/23
[#358] node.h for eval.c — Michal Rokos <m.rokos@...>
Hi,
5 messages
2002/08/23
[#372] rb_class_path — Michal Rokos <m.rokos@...>
Hello,
7 messages
2002/08/27
[#382] Port match to new dup, clone framework — Michal Rokos <m.rokos@...>
Hi,
5 messages
2002/08/28
[#393] in dln.c — Michal Rokos <m.rokos@...>
Hi,
14 messages
2002/08/30
[#398] Re: [MemLeak] in dln.c
— nobu.nokada@...
2002/08/31
Hi,
[#403] Re: [MemLeak] in dln.c
— Michal Rokos <m.rokos@...>
2002/09/02
Hello,
RE: A truth? patch + benchmarks
From:
"Christoph" <chr_news@...>
Date:
2002-08-02 08:54:46 UTC
List:
ruby-core #287
> -----Original Message-----
> From: ts [mailto:decoux@moulon.inra.fr]
> Sent: Friday, August 02, 2002 9:21 AM
> To: ruby-core@ruby-lang.org
> Cc: ruby-core@ruby-lang.org
> Subject: Re: A truth? patch + benchmarks
>
> >>>>> "C" == Christoph <chr_news@gmx.net> writes:
>
> C> static inline int
> C> rb_truth_test(VALUE obj)
> C> {
> C> if (~Qnil & obj) return 1;
> C> return 0;
> C> }
>
> Well, personnally I've not found a difference between the macro and
inline
> version (and the assembler generated was the same)
Don't know but maybe the compiler sometimes wisely decides not
to inline - or does some other type of global optimizations?
Anyway the size of the dll are different (vc7)- ls -l ...
794624 Aug 1 18:26 mswin32-ruby17.dll (rb_truth_test version)
791552 Aug 2 09:53 mswin32-ruby17.dll (PURE_RTEST = RTEST)
>
> C> Not surprisingly, this version tested as fast or faster then
> C> any of my other test candidates.
>
> You are sure that it's not an artefact ?
I did not want to (and somehow still don't want to)
believe that this isn't an artifact myself. But I am
getting these counter intuitive results on several
platforms mswin32, mingw32 and cygwin (3.1.1 gcc)
and the results seem very consistent (well at least
until I, eehm - more likely you, find my setup mistake;-).
/Christoph