develooper Front page | perl.perl6.internals | Postings from August 2002

[perl #16855] [PATCH] uselessly optimize print()

Thread Next
From:
Steve Fink
Date:
August 29, 2002 12:56
Subject:
[perl #16855] [PATCH] uselessly optimize print()
Message ID:
rt-16855-36044.1.06932455189011@bugs6.perl.org
# New Ticket Created by  Steve Fink 
# Please include the string:  [perl #16855]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=16855 >


In tracking down a gc bug, I realized that the current throwaway
implementation of the print op could be replaced with a faster
throwaway implementation that avoids doing a string_to_cstring.

Note that both the original and new implementations are still buggy
with respect to supporting different encodings. I don't know if
printf("%s") is any better than fwrite in terms of at least vaguely
paying attention to your locale or whatever. If so, don't apply it.

(all tests pass)

This patch, like the preceding several, are really just the detritus
resulting from me trying to clean up my local copy wrt to CVS. I will
now revert this change in my local code, and get the change back later
if someone bothers to apply the patch.


-- attachment  1 ------------------------------------------------------
url: http://rt.perl.org/rt2/attach/36044/29166/2d4445/fwrite-print.patch


Thread Next


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