Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Colors and locale warning

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Eric Sandall <eric AT sandall.us>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] Colors and locale warning
  • Date: Mon, 17 May 2004 10:46:08 -0700

Quoting Andrew <afrayedknot AT thefrayedknot.armory.com>:
> Not only that, it will be significantly faster, the `ls` version has to
> fork a subshell to run ls in, then actually run ls. That ammounts to
> two seperate forks when we could have just used wildcard expansion to
> begin with.
>
> On a side note, I did some benchmarking of out libhash library. It seems
> that all of the frontend calls call hash_build_variable_name in a
> ` ` subshell in-order to build the variable name. If instead we
> 1) pull all of its relavent code out into the few calling functions
> 2) change it to set a variable by reference
> it will run significantly faster.
>
> Currently to set 1000 hash values it takes 5 seconds, the users of
> devel sorcery will have noticed the "Computing previously installed
> depends..." message takes several seconds to complete (it used to be
> quite a bit slower). This is the reason why.
>
> However if we get rid of the use of the subshell in libhash, then we
> can do a 1000 libhash operations in less than half a second.
>
> (just a suggestion)
>
> -Andrew

If we can speed it up without losing any functionality or introducting new
bugs
I say go for it. :)

-sandalle

--
Eric Sandall | Source Mage GNU/Linux Developer
eric AT sandall.us PGP: 0xA8EFDD61 | http://www.sourcemage.org/
http://eric.sandall.us/ | SysAdmin @ Inst. Shock Physics @ WSU
http://counter.li.org/ #196285 | http://www.shock.wsu.edu/

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




Archive powered by MHonArc 2.6.24.

Top of Page