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#!/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);
any help would be greatly appreciated.
In reply to Performance issues by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |