Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Shell script and Big O notation Post 302664917 by jim mcnamara on Sunday 1st of July 2012 11:30:15 AM
Old 07-01-2012
Shell sits on top of so much other stuff, that anything that would merit O notation would already be in a low level language where you can directly control all of the "stuff", like I/O, buffering, memory ordering, etc.

Shell also suffers from performance degradation when coders are oblivious to the cost of process creation - e.g., writing loops that iterate over a miilion lines of a file, with dozens of external commands embedded, instead of using builtins and keywords.
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to view a big file(143M big)

1 . Thanks everyone who read the post first. 2 . I have a log file which size is 143M , I can not use vi open it .I can not use xedit open it too. How to view it ? If I want to view 200-300 ,how can I implement it 3 . Thanks (3 Replies)
Discussion started by: chenhao_no1
3 Replies

2. AIX

"too big" and "not enough memory" errors in shell script

Hi, This is odd, however here goes. There are several shell scripts that run in our production environment AIX 595 LPAR m/c, which has sufficient memory 14GB (physical memory) and horsepower 5CPUs. However from time to time we get the following errors in these shell scripts. The time when these... (11 Replies)
Discussion started by: jerardfjay
11 Replies

3. UNIX for Dummies Questions & Answers

How big is too big a config.log file?

I have a 5000 line config.log file with several "maybe" errors. Any reccomendations on finding solvable problems? (2 Replies)
Discussion started by: NeedLotsofHelp
2 Replies

4. Shell Programming and Scripting

Convert decimal notation to ANSI point code notation

wondering if anyone has any thoughts to convert the below thru a shell script Convert decimal signalling point notation to ANSI point code notation There is a site that does that conversion but i need to implement the solution in a shell script.....Thoughts.... OS: Solaris 9 ... (4 Replies)
Discussion started by: aavam
4 Replies

5. Shell Programming and Scripting

C-script notation

Just a very brief question, but I have a script written in a C-like language possibly tcl with the line set var ... ...All I want to know, is ** multiplication or is it exponentiation? What is the ** operator? (1 Reply)
Discussion started by: chrisjorg
1 Replies

6. Shell Programming and Scripting

Perl: scientific notation to decimal notation

hello folks, I have few values in a log which are in scientific notation. I am trying to convert into actual decimal format or integer but couldn't able to convert. Values in scientific notation: 1.1662986666666665E-4 2.0946799999999998E-4 3.0741333333333333E-6 5.599999999999999E-7... (2 Replies)
Discussion started by: scriptscript
2 Replies

7. UNIX for Advanced & Expert Users

Big problem: shell entry in /etc/passwd corrupted for user root

did a big mistake, changing root entry of /etc/passwd to root:x:0:0:root:/root:/usr/bin/tmux split-window -v \; attach as expected, now I can't login as root anymore. sudo ed /etc/passwd etc. doesn't work. Any idea? Use code tags to increase readability and follow the rules. (4 Replies)
Discussion started by: dodona
4 Replies
XML_SET_NOTATION_DECL_HANDLER(3)					 1					  XML_SET_NOTATION_DECL_HANDLER(3)

xml_set_notation_decl_handler - Set up notation declaration handler

SYNOPSIS
bool xml_set_notation_decl_handler (resource $parser, callable $handler) DESCRIPTION
Sets the notation declaration handler function for the XML parser $parser. A notation declaration is part of the document's DTD and has the following format: <!NOTATION <parameter>name</parameter> { <parameter>systemId</parameter> | <parameter>publicId</parameter>?> PARAMETERS
o $parser - A reference to the XML parser to set up notation declaration handler function. o $handler -$handler is a string containing the name of a function that must exist when xml_parse(3) is called for $parser. The function named by $handler must accept five parameters: handler (resource $parser, string $notation_name, string $base, string $system_id, string $public_id) o $parser - The first parameter, parser, is a reference to the XML parser calling the handler. o $notation_name - This is the notation's $name, as per the notation format described above. o $base - This is the base for resolving the system identifier ($system_id) of the notation declaration. Currently this parameter will always be set to an empty string. o $system_id - System identifier of the external notation declaration. o $public_id - Public identifier of the external notation declaration. If a handler function is set to an empty string, or FALSE, the handler in question is disabled. Note Instead of a function name, an array containing an object reference and a method name can also be supplied. RETURN VALUES
Returns TRUE on success or FALSE on failure. PHP Documentation Group XML_SET_NOTATION_DECL_HANDLER(3)
All times are GMT -4. The time now is 04:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy