On Sat, 2007-08-25 at 10:15 -0400, Matt Sergeant wrote: > On 24-Aug-07, at 6:40 PM, David Sparks wrote: > > > I'm using the poll server which means that there aren't threads to > > worry > > about. However the future probably means running multiple daemons to > > take advantage of multi-core systems so there would need to be a > > daemon > > id encoded in there. > > Yeah, we use HiRes::time() . ".$$" and we don't get any file stomping
This works until you can run 65K processes per microsecond or 2G process per microsecond if the PID is 32 bits ... we'll probably need quantum computers before that would break ;-) > > (and we're doing millions of emails/day). Could you clarify? There is no HiRes module in CPAN. Here's what I see: DateTime::HiRes Rose::DB::Object::Metadata::Column::Epoch::HiRes Time::HiRes Time::HiRes::Value I've been using Time::HiRes, which does not have a time() call but ships in the debian perl-modules package. > -- --gh