<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Spartan Java&#187; Performance</title>
	<atom:link href="http://www.spartanjava.com/category/performance/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.spartanjava.com</link>
	<description>Simple yet powerful Java programming</description>
	<lastBuildDate>Wed, 25 Nov 2009 15:26:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Asynchronous logging with log4j</title>
		<link>http://www.spartanjava.com/2009/asynchronous-logging-with-log4j/</link>
		<comments>http://www.spartanjava.com/2009/asynchronous-logging-with-log4j/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 15:26:37 +0000</pubDate>
		<dc:creator>ricardoz</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java logging]]></category>
		<category><![CDATA[log4j]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[memory]]></category>

		<guid isPermaLink="false">http://www.spartanjava.com/?p=52</guid>
		<description><![CDATA[In case you are not doing it already, using asynchronous logging is generally a good idea. You don&#8217;t want your application to slow down if the server IO is a little behind flushing all that logging to the filesystem. By making it asynchronous your application can continue running without having to wait for the log [...]]]></description>
		<wfw:commentRss>http://www.spartanjava.com/2009/asynchronous-logging-with-log4j/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Blocking multiple clicks real easy</title>
		<link>http://www.spartanjava.com/2009/blocking-multiple-clicks-real-easy/</link>
		<comments>http://www.spartanjava.com/2009/blocking-multiple-clicks-real-easy/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 19:57:25 +0000</pubDate>
		<dc:creator>ricardoz</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web related]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[multiple clicks]]></category>
		<category><![CDATA[simple]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.spartanjava.com/?p=31</guid>
		<description><![CDATA[I&#8217;ve faced this problem a few times before, but this time I decided to find a generic solution to it. I needed to prevent users from clicking action links in a web application multiple times and therefore triggering some server side action a lot of times when only one time was enough/needed.
After looking around for [...]]]></description>
		<wfw:commentRss>http://www.spartanjava.com/2009/blocking-multiple-clicks-real-easy/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fast collection look-ups</title>
		<link>http://www.spartanjava.com/2009/fast-collection-look-ups/</link>
		<comments>http://www.spartanjava.com/2009/fast-collection-look-ups/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 21:12:24 +0000</pubDate>
		<dc:creator>ricardoz</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[collections]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.spartanjava.com/?p=26</guid>
		<description><![CDATA[I recently had to load a bunch of objects into memory and then perform thousands of look-ups over that collection. Using the good old java.util.ArrayList just didn&#8217;t cut it, the contains() function is extremely slow (as you would guess of course since this implementation stores elements as they are inserted and without any aditional indexing [...]]]></description>
		<wfw:commentRss>http://www.spartanjava.com/2009/fast-collection-look-ups/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Very easy FIFO cache</title>
		<link>http://www.spartanjava.com/2008/very-easy-fifo-cache/</link>
		<comments>http://www.spartanjava.com/2008/very-easy-fifo-cache/#comments</comments>
		<pubDate>Fri, 02 May 2008 20:08:18 +0000</pubDate>
		<dc:creator>ricardoz</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[simple]]></category>

		<guid isPermaLink="false">http://www.spartanjava.com/?p=11</guid>
		<description><![CDATA[There are plenty of times when you need a cache for Java objects in your code. A very easy to use and simple implementation of a cache is provided with Apache ORO, wisely called CacheFIFO (http://jakarta.apache.org/oro/api/org/apache/oro/util/CacheFIFO.html).

This is a very simple example of how I used it to cache user POJOs in an enterprise applications back-end:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
import [...]]]></description>
		<wfw:commentRss>http://www.spartanjava.com/2008/very-easy-fifo-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t raise exceptions for every little thing</title>
		<link>http://www.spartanjava.com/2008/dont-raise-exceptions-for-every-little-thing/</link>
		<comments>http://www.spartanjava.com/2008/dont-raise-exceptions-for-every-little-thing/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 19:35:58 +0000</pubDate>
		<dc:creator>ricardoz</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[exception]]></category>
		<category><![CDATA[handling]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.spartanjava.com/?p=7</guid>
		<description><![CDATA[Just in case you didn&#8217;t know, raising an exception makes the JVM do a lot of dirty work breaking execution flow and stuff. For example, try the following code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
public class MainExceptions &#123;
&#160;
   public static void main&#40;String args&#91;&#93;&#41;&#123;
      int loops = 10000000;
      long timeStamp [...]]]></description>
		<wfw:commentRss>http://www.spartanjava.com/2008/dont-raise-exceptions-for-every-little-thing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keep it simple!</title>
		<link>http://www.spartanjava.com/2008/keep-it-simple/</link>
		<comments>http://www.spartanjava.com/2008/keep-it-simple/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 14:11:18 +0000</pubDate>
		<dc:creator>ricardoz</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[simple]]></category>

		<guid isPermaLink="false">http://www.spartanjava.com/index.php/2008/keep-it-simple/</guid>
		<description><![CDATA[Do you really need to have a database table with all existing countries? What&#8217;s the benefit? Apart from adding one more database query to each page hit and an array to each users context while loading that form&#8230;
Think it over, every software component&#8217;s goal must be, first of all, to satisfy the users needs as [...]]]></description>
		<wfw:commentRss>http://www.spartanjava.com/2008/keep-it-simple/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
