develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r33569 - trunk/src/gc

From:
Whiteknight
Date:
December 6, 2008 08:50
Subject:
[svn:parrot] r33569 - trunk/src/gc
Message ID:
20081206165033.1A85ACB9AF@x12.develooper.com
Author: Whiteknight
Date: Sat Dec  6 08:50:32 2008
New Revision: 33569

Modified:
   trunk/src/gc/smallobject.c

Log:
[src/gc] add a small comment to smallobject.c that isn't worth pursuing now.

Modified: trunk/src/gc/smallobject.c
==============================================================================
--- trunk/src/gc/smallobject.c	(original)
+++ trunk/src/gc/smallobject.c	Sat Dec  6 08:50:32 2008
@@ -133,7 +133,10 @@
     Small_Object_Pool * const pool = interp->arena_base->constant_pmc_pool;
     const               int   c    = contained_in_pool(pool, pmc);
 
-    /* some paranoia first */
+    /* some paranoia first. */
+    /* I wonder if it would save any machine cycles to write
+       !(PObj_constant_TEST(pmc) ^ c)
+       instead. */
     PARROT_ASSERT(!!PObj_constant_TEST(pmc) == !!c);
 
     return c;



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About