Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Which is Best ? XML or Textpad

by Random_Walk (Parson)
on Mar 30, 2009 at 13:00 UTC ( #754133=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Which is Best ? XML or Textpad
in thread Which is Best ? XML or Textpad

I am also not sure what you are trying to do but if you just want to exercise the back end and do not care about the contents you are putting in perhaps you do not need to create and read large XML files. Would a small routine that just hammers data pairs into the back end and warns of any errors be enough?

Are you trying to test the FakeFEClient which I see in the line: my $obj1 = new FakeFEClient::FakeFEClient("192.168.106.57",9001,"1","default_encrypt1");

Your code does look to create a lot of large data sets, this will take time and possibly use a lot of memory, if you can take your key/value pairs one at a time and then do the required work you may find it faster. It may be enough to generate random key/value pairs in a loop and the test the insertion of these into the back end.

Perhaps you can explain in a few steps what you are trying to do and why you decided to do this by first building a massive XML file.

There are also two lines missing from the code you have posted:

use strict, use warnings,

They will save you a lot of time in the long run

Cheers,
R.

Pereant, qui ante nos nostra dixerunt!


Comment on Re^3: Which is Best ? XML or Textpad
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://754133]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2014-08-23 04:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (172 votes), past polls