Skip Menu |

This queue is for tickets about the IO CPAN distribution.

Report information
The Basics
Id: 59667
Status: resolved
Priority: 0/
Queue: IO

People
Owner: Nobody in particular
Requestors: dmuey [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.25
Fixed in: (no value)



Subject: make IO::* more efficient by doing less imports
Hello, We do “use IO::Socket ();” (i.e. non-import()) all over the place. We've seen a 1/4 MB savings in memory by patching he IO modules to not import so much. e.g.: use XYZ qw(abc); abc(...); to use XYZ (); XYZ::abc(...); In a server environment that can add up quickly! We'd love to share this patch with you if you're interested. I can also send import specifics and memory benchmarks to show the benefit. Let me know, thanks! -- Dan Muey
Just documenting here that this might server as a precedent: https://rt.cpan.org/Public/Bug/Display.html?id=4774
Just FYI, we consistently save an average of 1/4 MB memory w/ 'use IO::Socket ()' w/ our patched version of 1.25 over the normal 1.25 That can add up quick in a server environment!
Ticket migrated to github as https://github.com/toddr/IO/issues/39