10-17-2008
And am interested to see by what percentage computational time came down, if that happens ?
>>>>>>>>>>>>>>>>
I have got one more suggestion, since there is more processing power best thing is to exploit them.
What could be done is ? - A master script whose only job is to read through the file and splits into chunks and assign it to the script you have written
With this multiple process would be doing the job instead of waiting for 1 job to complete the task.
I assume that there are no dependencies that file has to be processed only in sequential order and the only
aim is to process the file quickly.
If possible, I will post a sample code tonight
Last edited by matrixmadhan; 10-17-2008 at 09:16 AM..
Reason: Exploit processing power
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello Everybody,
Could anyone please tell me how to get ssh to work without asking for passwords? (i want to do a ssh <hostname> without getting a request for a password but getting connected straight away)
I have attempted the following but to no avail :( ...
I tried to generate a SSH... (5 Replies)
Discussion started by: rkap
5 Replies
2. Programming
So basically what im trying to do is ...
Open file, read that file, than try to find ..
We or we and replace them with I, but not replace the cases where words contain We or we, such as Went, went, etc
a and replace them with the, but not replace the cases where words contain a, such as... (1 Reply)
Discussion started by: bconnor
1 Replies
3. Shell Programming and Scripting
Could someone explain my problem?
I've the following script...
#! /bin/ksh
...
vmquery -m $MediaID | awk '
BEGIN {FS=": "
getline expdate <"ExpDate.txt"
}
$1 ~ /media ID/ {MediaNumber = $NF}
...
$1 ~ /number of mounts/ {
"date +%Y"|getline YearToday
Year4 = YearToday - 4
if... (4 Replies)
Discussion started by: nymus7
4 Replies
4. Shell Programming and Scripting
One of our servers runs Solaris 8 and does not have "ls -lh" as a valid command. I wrote the following script to make the ls output easier to read and emulate "ls -lh" functionality. The script works, but it is slow when executed on a directory that contains a large number of files. Can anyone make... (10 Replies)
Discussion started by: shew01
10 Replies
5. UNIX for Dummies Questions & Answers
Hey all my co-workers and I are trying to put together a list of things root "Can't" do on any *NIX OS, so I wanted to come here and see what all we could come up with.
Here are two to start this off:
write to a read only mount FS
kill a tape rewind
Please add what you know.
Thanks,... (5 Replies)
Discussion started by: sunadmn
5 Replies
6. Shell Programming and Scripting
Can someone help me edit the below script to make it run faster?
Shell: bash
OS: Linux Red Hat
The point of the script is to grab entire chunks of information that concerns the service "MEMORY_CHECK".
For each chunk, the beginning starts with "service {", and ends with "}".
I should... (15 Replies)
Discussion started by: SkySmart
15 Replies
7. Shell Programming and Scripting
Hi,
I have a large number of input files with two columns of numbers.
For example:
83 1453
99 3255
99 8482
99 7372
83 175
I only wish to retain lines where the numbers fullfil two requirements. E.g:
=83
1000<=<=2000
To do this I use the following... (10 Replies)
Discussion started by: s052866
10 Replies
8. Shell Programming and Scripting
data.file:
contact {
contact_name=royce-rolls
modified_attributes=0
modified_host_attributes=0
modified_service_attributes=0
host_notification_period=24x7
service_notification_period=24x7
last_host_notification=0
last_service_notification=0
host_notifications_enabled=1... (8 Replies)
Discussion started by: SkySmart
8 Replies
LEARN ABOUT OSX
moose::cookbook::basics::recipe7
Moose::Cookbook::Basics::Recipe7(3) User Contributed Perl Documentation Moose::Cookbook::Basics::Recipe7(3)
NAME
Moose::Cookbook::Basics::Recipe7 - Making Moose fast with immutable
VERSION
version 2.0205
SYNOPSIS
package Point;
use Moose;
has 'x' => ( isa => 'Int', is => 'ro' );
has 'y' => ( isa => 'Int', is => 'rw' );
__PACKAGE__->meta->make_immutable;
DESCRIPTION
The Moose metaclass API provides a "make_immutable()" method. Calling this method does two things to your class. First, it makes it faster.
In particular, object construction and destruction are effectively "inlined" in your class, and no longer invoke the meta API.
Second, you can no longer make changes via the metaclass API, such as adding attributes. In practice, this won't be a problem, as you
rarely need to do this after first loading the class.
CONCLUSION
We strongly recommend you make your classes immutable. It makes your code much faster, with a small compile-time cost. This will be
especially noticeable when creating many objects.
AUTHOR
Stevan Little <stevan@iinteractive.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Infinity Interactive, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.12.5 2011-09-06 Moose::Cookbook::Basics::Recipe7(3)