View Full Version : 1and1 Perl Modules
Mike Hughes
26-Nov-2008, 08:29 AM
Ok, I've looked up the Perl Modules installed on 1and1 here http://links.1and1faqs.com/perldiver.cgi
It seems to have everything Actinic asks for (including Archive::Zip for the faster uploads) but with two exceptions:
1. Exporter;
2. ActEncryption1024;
I'm not too surprised about the second one as it's an Actinic generated module.
Does anyone know how important the Exporter module is and the impact of not having it?
And why does ActEncryption1024 as a module help. If it's actinic code why is it faster to run as a module than have it in the scripts?
Mike
Darren B
26-Nov-2008, 08:43 AM
Mike
I dont have either installed on my servers
D
oh and for a techy description of what exporter does
The Exporter module implements an import method which allows a module to export functions and variables to its users' namespaces. Many modules use Exporter rather than implementing their own import method because Exporter provides a highly flexible interface, with an implementation optimised for the common case.
Perl automatically calls the import method when processing a use statement for a module. Modules and use are documented in perlfunc and perlmod. Understanding the concept of modules and how the use statement operates is important to understanding the Exporter.
pinbrook
26-Nov-2008, 11:16 AM
ActEncryption1024 is available from actinic - esssentially it improves the speed of the site
to quote actinic
• Significantly improves the speed of registering orders in the final phase of the checkout, particularly when large numbers of line items are being purchased
• Significantly reduces the load on the server cpu resources for hosts, particularly if a number of Actinic stores are on the same server
I've installed it and tested it on a test server running Perl 5.8.5 and 9.0.3 beta, but haven't run it on a big site to test speed.
Mike Hughes
26-Nov-2008, 11:32 AM
Thanks Jo,
I can understand scripts using existing modules to avoid having to write their own version and to benefit from the modules code already being optimised and proven.
I'm just perplexed as to why it's better for ActEncryption1024 to be installed as a module rather than a script that runs the same code. Is it just that as a module only one instance runs rather than multiple copies? (which would explain the reduced server load if there are several Actinic stores running on the same server).
Or maybe it's a memory hungry beast that's better off not being restricted by individual users memory limitations?
Mike
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.