Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Net-MAC-Vendor CPAN distribution.

Report information
The Basics
Id: 59165
Status: resolved
Priority: 0/
Queue: Net-MAC-Vendor

People
Owner: Nobody in particular
Requestors: mzagrabe [...] d.umn.edu
Cc:
AdminCc:

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



Subject: option to forego DBM::Deep
Date: Wed, 07 Jul 2010 10:59:10 -0500
To: bug-Net-MAC-Vendor [...] rt.cpan.org
From: Matt Zagrabelny <mzagrabe [...] d.umn.edu>
Greetings, Thanks for writing Net::MAC::Vendor, it is very useful. I am encountering an issue though: I've got DBM::Deep installed and I would like to *not* use it with Net::MAC::Vendor. The attached patch allows you to choose whether Net::MAC::Vendor uses DBM::Deep, it works for me and should not break any scripts that use 1.18. It would allow users to do something like: use Net::MAC::Vendor; Net::MAC::Vendor::set_cached(use_dbm_deep => 0); Net::MAC::Vendor::load_cache(); my $info = Net::MAC::Vendor::fetch_oui_from_cache('00:10:18:5c:c3:ad'); or omit the set_cached line and the module functions just as it had before. Please consider merging the patch into upstream. Thanks for your contribution to free software! Sincerely, -- Matt Zagrabelny - mzagrabe@d.umn.edu - (218) 726 8844 University of Minnesota Duluth Information Technology Systems & Services PGP key 4096R/42A00942 2009-12-16 Fingerprint: 5814 2CCE 2383 2991 83FF C899 07E2 BFA8 42A0 0942 He is not a fool who gives up what he cannot keep to gain what he cannot lose. -Jim Elliot

Message body is not shown because sender requested not to inline it.

Download signature.asc
application/pgp-signature 836b

Message body not shown because it is not plain text.

On Wed Jul 07 12:00:19 2010, mzagrabe@d.umn.edu wrote: Show quoted text
> I've got DBM::Deep installed and I would like to *not* use it with > Net::MAC::Vendor.
Can you explain that? Do you want to use something else? If you don't want to use a cache, don't use fetch_oui_from_cache(). Instead, just use fetch_oui_from_ieee. Or, do you want to use an in-memory cache, so you fetch and parse *all* of the data every time you run the program, but then discard it at the end of the run? If it's the latter, I can just adjust the cache setup code.
On Wed Jul 07 12:00:19 2010, mzagrabe@d.umn.edu wrote: Show quoted text
> I've got DBM::Deep installed and I would like to *not* use it with > Net::MAC::Vendor.
Can you explain that? Do you want to use something else? If you don't want to use a cache, don't use fetch_oui_from_cache(). Instead, just use fetch_oui_from_ieee. Or, do you want to use an in-memory cache, so you fetch and parse *all* of the data every time you run the program, but then discard it at the end of the run? If it's the latter, I can just adjust the cache setup code.
Subject: Re: [rt.cpan.org #59165] option to forego DBM::Deep
Date: Fri, 9 Jul 2010 10:08:58 -0500
To: bug-Net-MAC-Vendor [...] rt.cpan.org
From: Matt Zagrabelny <mzagrabe [...] d.umn.edu>
On Thu, Jul 8, 2010 at 6:06 PM, brian d foy via RT <bug-Net-MAC-Vendor@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=59165 > > > On Wed Jul 07 12:00:19 2010, mzagrabe@d.umn.edu wrote: >
>> I've got DBM::Deep installed and I would like to *not* use it with >> Net::MAC::Vendor.
> > Can you explain that? > > Do you want to use something else? If you don't want to use a cache, don't use fetch_oui_from_cache(). Instead, just use fetch_oui_from_ieee. > > Or, do you want to use an in-memory cache, so you fetch and parse *all* of the data every > time you run the program, but then discard it at the end of the run?
Yep, that is what I am doing, and would like to continue doing. ;) Show quoted text
> If it's the latter, I can just adjust the cache setup code.
Okay, great. The wall-clock run times vary quite a bit: in-memory cache (no DBM::Deep) = ~6 seconds disk cached (using DBM::Deep) = ~ 1:40 seconds