<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Optimización on Karpoke - Just Another Blog</title><link>http://karpoke.ignaciocano.com/tags/optimizaci%C3%B3n/</link><description>Recent content in Optimización on Karpoke - Just Another Blog</description><generator>Hugo -- 0.159.0</generator><language>es</language><lastBuildDate>Wed, 30 Nov 2016 08:34:00 +0100</lastBuildDate><atom:link href="http://karpoke.ignaciocano.com/tags/optimizaci%C3%B3n/index.xml" rel="self" type="application/rss+xml"/><item><title>Writing efficient JavaScript</title><link>http://karpoke.ignaciocano.com/2016/11/30/writing-efficient-javascript/</link><pubDate>Wed, 30 Nov 2016 08:34:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2016/11/30/writing-efficient-javascript/</guid><description>&lt;blockquote&gt;
&lt;p&gt;This entry describes simple techniques to fulfill the JavaScript compiler
optimization process which results in faster running code. Especially in
games you immediately notice frame drops and when the garbage collector has
to hit in with a big stack of work to do.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;» Felix Maier | &lt;a href="https://medium.com/@xilefmai/efficient-javascript-14a11651d563#.k634iq2t7" title="Writing efficient JavaScript"&gt;medium.com&lt;/a&gt;&lt;/p&gt;</description></item><item><title>xkcd 1313: Something is Wrong on the Internet!</title><link>http://karpoke.ignaciocano.com/2014/01/07/xkcd-1313-something-is-wrong-on-the-internet/</link><pubDate>Tue, 07 Jan 2014 01:41:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2014/01/07/xkcd-1313-something-is-wrong-on-the-internet/</guid><description>&lt;blockquote&gt;
&lt;p&gt;I found that the rollover text,
“&lt;code&gt;/bu|[rn]t|[coy]e|[mtg]a|j|iso|n[hl]|[ae]d|lev|sh|[lnd]i|[po]o|ls/&lt;/code&gt; matches
the last names of elected US presidents but not their opponents.”, is
obviously false. After all there are several last names (like “Nixon” and
“Bush”) that denote both elected presidents and opponents. So no regular
expression could both match and not match “Nixon”.&lt;/p&gt;
&lt;p&gt;So that got me thinking: if we ignore names that are both winners and losers,
what regular expression does cover the winners and not the losers? And let’s
try to find a short one, although perhaps not the very shortest.&lt;/p&gt;</description></item><item><title>localepurge</title><link>http://karpoke.ignaciocano.com/2011/05/25/localepurge/</link><pubDate>Wed, 25 May 2011 10:44:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2011/05/25/localepurge/</guid><description>&lt;p&gt;&lt;code&gt;localepurge&lt;/code&gt; es una herramienta que elimina los archivos de traducción
que no necesitemos. Después de instalarlo, nos pedirá que &lt;a href="http://www.guia-ubuntu.org/index.php?title=Localepurge"&gt;seleccionemos
qué idiomas queremos conservar&lt;/a&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;en_US&lt;/li&gt;
&lt;li&gt;en_US.ISO-8859-15&lt;/li&gt;
&lt;li&gt;en_US.UTF-8&lt;/li&gt;
&lt;li&gt;es&lt;/li&gt;
&lt;li&gt;es_ES&lt;/li&gt;
&lt;li&gt;es_ES@euro&lt;/li&gt;
&lt;li&gt;es_ES.UTF-8&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Después de instalarlo, lo ejecutamos:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;$ sudo localepurge
Total disk space freed by localepurge: 26552 KiB
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Cada vez que instalemos un nuevo paquete de los respositorios se
ejecutará automáticamente, por lo que no tendremos que volver a
preocuparnos.&lt;/p&gt;
&lt;hr&gt;
&lt;h4 id="actualización-a-17-de-marzo-de-2013"&gt;Actualización a 17 de marzo de 2013&lt;/h4&gt;
&lt;p&gt;Acabo de encontrar una anotación interesante en el blog del &lt;a href="http://crysol.org/es/node/1696"&gt;crysol&lt;/a&gt;.
En lugar de eliminar las traducciones que no nos interesan, podemos,
directamente, evitar descargarlas. Editamos el fichero
&lt;code&gt;/etc/apt/apt.conf.d/99Translations&lt;/code&gt;, y añadimos lo que necesitemos, por
ejemplo:&lt;/p&gt;</description></item></channel></rss>