Hello fellas
I'm using the following script from mit
The code looks like so:
#!/usr/bin/perl -w BEGIN { unshift @INC, "lib" } use strict; use SNMP::MIB::Compiler; use Data::Dumper; my $DATE = '1999/05/06'; my $outdir = 'out'; my $file = shift || die "Usage: $0 MIBNAME\n"; $Data::Dumper::Purity = 1; $Data::Dumper::Indent = 1; $Data::Dumper::Terse = 1; my $mib = new SNMP::MIB::Compiler; $mib->add_path('mibs', 'mibs/cisco', 'mibs/com21', '/home/ftp/doc/mibs/ascend'); $mib->add_extension('', '.mib', '.my'); mkdir $outdir, oct 755 unless -d $outdir; $mib->repository($outdir); $mib->{'accept_smiv1'} = 1; $mib->{'accept_smiv2'} = 1; $mib->{'debug_recursive'} = 1; $mib->{'debug_lexer'} = 0; $mib->{'make_dump'} = 1; $mib->{'use_dump'} = 1; $mib->{'do_imports'} = 1; $mib->{'allow_underscore'} = 1; $mib->load($file) || $mib->compile($file);
It works fine on Solaris using around 6 meg of memory to compile a MIB, but runs out of memory on Windows using around 1 GB (Yes I said GB). Is it apparent to anyone why this is the case? I've changed some of the flags for the compiler without success

any help would be greatly appreciated.


In reply to Performance issues by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.