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

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

Thread Next
Steve Fink
August 29, 2002 12:56
[perl #16855] [PATCH] uselessly optimize print()
Message ID:
# New Ticket Created by  Steve Fink 
# Please include the string:  [perl #16855]
# in the subject line of all future correspondence about this issue. 
# <URL: >

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 ------------------------------------------------------

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About