🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #14183

Re: [perl] ¿Hay alguna forma de optimizar este bucle?

#14183
From: Gorka Olaizola
Date: Thu, 30 Nov 2000 00:00
24 lines
1986 bytes
El d�a Wed, 29 Nov 2000 23:18:21 GMT, Jesus <calvin@micasa.org> escribi�:
>Lo que creo un poco ineficiente es el (if ($hash == $tmp ) ) Si pones:
>$insert=1 if $subject_hash{$tmp};# lo que estas haciendo es ver si existe un
>valor con esa clave directamente, las llaves on unicas
>Esta instrucci�n creo que te ahorra el primer bucle, y adem�s no que haces
>con (--$i &15)
>
Pues voy a probar que si me ahorro el primer bucle ir� much�simo m�s r�pido.
Gracias. Soy un novat�n en perl y acostumbrado al C me l�o mucho.

>>         print gettext("There are"), " $i ", gettext("messages left"),
>
>"\n"; # �que es gettext?Para que sirve?Sobra?
>
gettext es la librer�a est�ndar gnu para traducir textos. Tiene un interfaz
para perl y con ella puedes traducir los textos de los programas f�cilmente.
Gnome, kde y la mayor�a de proyectos la usan.

-- 
  musg0 @ irc                     http://personales.jet.es/olsago/
    _-(_)-  _-(_)-  _-( )-   (o_    _-(_)-  _-(_)-  _-(_)-  _-(_)-
  `(___)  `(___)  `(___)     //\  `(___)  `(___)  `(___)  `(___)
   // \\   // \\   // \\     V_/   // \\   // \\   // \\   // \\
"Like penguins among sheeps we live." -=[Debian GNU/Linux Woody]=-
Technical Details
Message-ID: <slrn92d9pb.6n0.gorka@conan.hondarribia.penguinpowered.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <slrn91m0va.cqa.gorka@conan.hondarribia.penguinpowered.com> <19gV5.67739$k06.1801508@telenews.teleline.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,a085bb156a6e9970
X-Google-Attributes: gidf86c8,public
From: gorka@hondarribia.penguinpowered.com (Gorka Olaizola)
Subject: Re: [perl] ¿Hay alguna forma de optimizar este bucle?
Date: 2000/11/30
Message-ID: <slrn92d9pb.6n0.gorka@conan.hondarribia.penguinpowered.com>
X-Deja-AN: 699672447
Content-Transfer-Encoding: 8bit
References: <slrn91m0va.cqa.gorka@conan.hondarribia.penguinpowered.com> <19gV5.67739$k06.1801508@telenews.teleline.es>
Content-Type: text/plain; charset=iso-8859-1
Organization: ecol.* (http://www.escomposlinux.org)
Mime-Version: 1.0
User-Agent: slrn/0.9.6.3 (Linux)
Reply-To: gorka@escomposlinux.org
Newsgroups: es.comp.os.linux.programacion