LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-30-2009, 08:32 AM   #46
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,245
Blog Entries: 15

Original Poster
Rep: Reputation: 233Reputation: 233Reputation: 233

Quote:
Originally Posted by ntubski View Post
Whoa
Took me really much time to finish this.
Quote:
There's a lot of code there, I sincerely doubt that replacing the abspath functions will make a noticeable difference, but it's hard to say without some typical input files to test things with.
That's probably the reason why I really can't have much for a choice.
I have test scripts but I didn't include it in the package. It's not really necessary to include them I guess.
Quote:
If you are serious about optimizing I would go back to my earlier suggestion: rewrite the program to handle multiple paths per run, perhaps using a fifo or socket.
Probably but I'm not sure if that's really applicable since no part of the code requires more than 1 path at a time.
Quote:
I'm wondering why you have a hashing function in your compiler, aren't all awk arrays hash tables already?
Do you mean makehash()? I just use it to create hashes like the ones created by md5sum and the likes. I use it to create functions that will represent call files.

By the way I finally finished the Simpler version as well. Loader-Simpler includes the extended functions loadx(), includex() and callx(). They acknowledge patterns and expressions.

The last will be the full and non-stripped version but it's the most difficult and surely it will not be soon.. though.
 
Old 08-31-2009, 04:26 AM   #47
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,245
Blog Entries: 15

Original Poster
Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by ntubski View Post
If you are serious about optimizing I would go back to my earlier suggestion: rewrite the program to handle multiple paths per run, perhaps using a fifo or socket.
I think I know now what you mean but I think it would be better if I put that on a different package since it appears to be more like a hack and I'm not sure if it will be stable as a generic implementation for shells.
 
Old 08-31-2009, 05:40 PM   #48
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian
Posts: 2,431

Rep: Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824
Quote:
Originally Posted by konsolebox View Post
Quote:
There's a lot of code there, I sincerely doubt that replacing the abspath functions will make a noticeable difference, but it's hard to say without some typical input files to test things with.
That's probably the reason why I really can't have much for a choice.
Um, I can't parse this sentence.
Quote:
I have test scripts but I didn't include it in the package. It's not really necessary to include them I guess.
But you have some example that runs slow (which is why you asked for optimization help), right? It would be interesting to see that.

Last edited by ntubski; 08-31-2009 at 05:41 PM. Reason: grammar
 
Old 09-01-2009, 04:56 AM   #49
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,245
Blog Entries: 15

Original Poster
Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by ntubski View Post
Um, I can't parse this sentence.
never mind that then.. sorry if my english is bad
Quote:
But you have some example that runs slow (which is why you asked for optimization help), right? It would be interesting to see that.
they're pretty unorderly but ok.. i'll post it later.
 
Old 09-02-2009, 03:28 AM   #50
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,245
Blog Entries: 15

Original Poster
Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by ntubski View Post
But you have some example that runs slow (which is why you asked for optimization help), right? It would be interesting to see that.
About the scripts? Not really. I'm pretty happy with what they are right now and they appear to be already stable and consistent. After many revisions, I finally found their final form (probably the most optimized and most balanced form). And nothing has changed much since the first release (only descriptions and documents except for the generic loader where I didn't test its failure function).

But of course and nevertheless, I can never be sure of that and suggestions like yours (esp. from someone that helped me a lot already) will always be welcomed.

Just made the cleaner version of the test scripts and uploaded them. Same site at sourceforge in the extra folder. Good luck and enjoy .
 
Old 09-04-2009, 04:47 AM   #51
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,245
Blog Entries: 15

Original Poster
Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by ntubski View Post
But you have some example that runs slow (which is why you asked for optimization help), right? It would be interesting to see that.
I just made a new upload of my other project. The project uses ShellScript Loader and I just thought that you might also want to see how it proves the concept.

http://sourceforge.net/projects/playshell/files/
 
Old 09-30-2009, 01:23 AM   #52
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,227

Rep: Reputation: 170Reputation: 170
old thread but you are assuming the path seperator is "/" but in dos and windows its "\";
 
Old 09-30-2009, 05:02 AM   #53
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,245
Blog Entries: 15

Original Poster
Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by smeezekitty View Post
old thread but you are assuming the path seperator is "/" but in dos and windows its "\";
yes, it's only meant for the *NIX format..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java applet not loading image with relative path but loads image with absolute path amolgupta Programming 2 07-20-2009 01:58 PM
how to get absolute path in a C program, Amiya Rath Linux - Newbie 2 10-15-2008 07:46 PM
Absolute path qspares Linux - Software 6 10-02-2007 03:11 AM
Image Path reference in Linux (Absolute path) javabuddy Linux - General 7 06-05-2006 07:45 AM
relative to absolute path vishalbutte Programming 4 01-14-2006 03:17 PM


All times are GMT -5. The time now is 01:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration