<?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>Christopher Rivera &#187; wordpress</title>
	<atom:link href="http://www.chrisrivera.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chrisrivera.com</link>
	<description>Nothing Better Than The Classics</description>
	<lastBuildDate>Thu, 29 Sep 2011 22:20:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>WordPress 3.0 Initial Thoughts</title>
		<link>http://www.chrisrivera.com/2010/06/27/wordpress-30-initial-thoughts/</link>
		<comments>http://www.chrisrivera.com/2010/06/27/wordpress-30-initial-thoughts/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 18:55:42 +0000</pubDate>
		<dc:creator>chrisrivera</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.chrisrivera.com/?p=235</guid>
		<description><![CDATA[I finally got around to installing and playing with the new WordPress 3.0 version. The new interface is a small improvement over the previous versions. I think the biggest improvement so far is the Appearance/Themeing options. There are now options &#8230; <a href="http://www.chrisrivera.com/2010/06/27/wordpress-30-initial-thoughts/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I finally got around to installing and playing with the new <a href="http://www.wordpress.org" target="_blank">WordPress</a> 3.0 version. The new interface is a small improvement over the previous versions. I think the biggest improvement so far is the Appearance/Themeing options. There are now options for the Header, Background and Menus.</p>
<h2>Appearances</h2>
<p>The Header option allows you select which image should appear in your header with ease.</p>
<p>The Background allows you to define a color for your background or an image, it doesn&#8217;t seem to allow for more controls than that with the default theme.</p>
<p>The Menu option allows you to create a custom menu system. Definitely a nice touch. You define your elements, and include the custom menu as a widget into your theme.</p>
<p>The theme included is definitely an improvement over the older themes. It&#8217;s a more general design that you see in alot of wordpress sites, and should suit most of everyone&#8217;s basic needs.</p>
<h2>Creating Posts</h2>
<p>When creating posts you can define a featured image. The image will appear on your homepage and category listings, custom header, or other location if your theme supports.</p>
<h2>Memory Requirements</h2>
<p>My biggest issue the new version, which is still an issue with the previous versions, is the memory requirements. A fresh install of wordpress takes up to 10 Megabytes of memory to run for a single page request. That&#8217;s insane. The wordpress team really needs to make some headway on improving the memory requirements of wordpress. I&#8217;ve read their <a href="http://codex.wordpress.org/High_Traffic_Tips_For_WordPress" target="_blank">recommendations</a> on the subject, and they all boil down to increasing the memory limit for php (especially when you use quite a number of plugins), or getting a bigger box. This is only a half-solution, and doesn&#8217;t solve the entire problem. The other option of caching the php code is fine, but that increases the running httpd processes on your server, there by eating up more memory.</p>
<h2>Conclusions</h2>
<p>I&#8217;m seeing some good improvements with wordpress which makes me continue to use it. When it comes to memory requirements thought, I&#8217;m not too thrilled. I hope to find another system with the same or similar functionality and customization. If you&#8217;re on a shared host, the memory issues can bite you later on when your site gets popular, of if you&#8217;re running too many plugins.</p>
<p>I hope the wordpress team really addresses the memory usage issue, and makes some more performance improvements to WordPress. I would recommend to them the following:</p>
<ul>
<li>Caching the wp_options table to a file on the filesystem and/or support for memcache.</li>
<li>General support for memcache.</li>
<li>Move the rss_feed data that gets left in the wp_options table and move that to another table.</li>
<li>Not to clone the wp_query object. I don&#8217;t know why they do this, but having two of them just takes up more memory.</li>
<li>Eliminite the older code in the codebase. There are numerous references through out the files for old pieces of code that have been superseded by the same function under a different name.</li>
<li>Allow for more exposure of the underlining data from posts, comments, and other areas, so there aren&#8217;t as many plugins that get created.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisrivera.com/2010/06/27/wordpress-30-initial-thoughts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress is a hog</title>
		<link>http://www.chrisrivera.com/2008/07/09/wordpress-is-a-hog/</link>
		<comments>http://www.chrisrivera.com/2008/07/09/wordpress-is-a-hog/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 13:45:24 +0000</pubDate>
		<dc:creator>chrisrivera</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.chrisrivera.com/?p=16</guid>
		<description><![CDATA[I was doing some reading on WordPress and came across some people&#8217;s experiences with it and how they switched to another blogging software or how they have concerns with the way the software runs. Some of the posts note excessive &#8230; <a href="http://www.chrisrivera.com/2008/07/09/wordpress-is-a-hog/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was doing some reading on WordPress and came across some people&#8217;s experiences with it and how they switched to another blogging software or how they have concerns with the way the software runs. Some of the posts note excessive queries for data that may not be necessary. Finding these articles made me decide to do a little digging myself. I currently have this website running on wordpress and I have another website I manage that runs on wordpress.</p>
<p><span id="more-16"></span></p>
<p>I&#8217;m a big fan of a small code that does things efficiently. Why would I be any different about wordpress? I decided to open up the first file wordpress calls to see what other files get included. As a result, I find a long list of files that are loaded just to display a page in wordpress. Below is the output of what I found. Every file that is indented is called from the file that proceeds it in loading. Here is what I found:</p>
<pre>index.php
	./wp-blog-header.php
		wp-config.php
			wp-settings.php
				WPINC . /compat.php
				WPINC . /functions.php
				WPINC . /classes.php
				if (wp-content/object-cache.php)
					wp-content/object-cache.php
				else
					wp-content/cache.php
				WPINC . /plugin.php
				WPINC . /default-filters.php
				WPINC . /streams.php
				WPINC . /gettext.php
				WPINC . /l10n.php				

				require (WPINC . '/formatting.php');
				require (WPINC . '/capabilities.php');
				require (WPINC . '/query.php');
				require (WPINC . '/theme.php');
				require (WPINC . '/user.php');
				require (WPINC . '/general-template.php');
				require (WPINC . '/link-template.php');
				require (WPINC . '/author-template.php');
				require (WPINC . '/post.php');
				require (WPINC . '/post-template.php');
				require (WPINC . '/category.php');
				require (WPINC . '/category-template.php');
				require (WPINC . '/comment.php');
				require (WPINC . '/comment-template.php');
				require (WPINC . '/rewrite.php');
				require (WPINC . '/feed.php');
				require (WPINC . '/bookmark.php');
				require (WPINC . '/bookmark-template.php');
				require (WPINC . '/kses.php');
				require (WPINC . '/cron.php');
				require (WPINC . '/version.php');
				require (WPINC . '/deprecated.php');
				require (WPINC . '/script-loader.php');
				require (WPINC . '/taxonomy.php');
				require (WPINC . '/update.php');
				require (WPINC . '/canonical.php');
				require (WPINC . '/shortcodes.php');
				require (WPINC . '/media.php');

				require (WPINC . '/vars.php');

				load my-hacks.php is file exists.

				load plugins if active.

				require (WPINC . '/pluggable.php');

				load the locale_file for language.

				require_once(WPINC . '/locale.php');

		WPINC . /template-loader.php   (WPINC is defined in wp-settings.php)</pre>
<p>Wow, that is a very long list of files to get called.</p>
<p>I decided to take this a further and look at the rendering time and the memory used for loading a page. I found the following for this website:</p>
<ul>
<li>Loading the homepage: Memory Used: 6,277,732 bytes; Time to Render Page: 0.5902 seconds.</li>
<li>Loading a post: Memory Used: 6,229,616 bytes; Time to Render Page: 0.1445 seconds.</li>
</ul>
<p>6 full megs to load a page! The rendering time I&#8217;m not too crazy about either. Now, there are ways to improve this by using caching for the pages, and a PHP accelerator to speed up the code, but the vanilla loading of wordpress taking up this much memory and time seems slow and excessive. Granted, this is running on a VPS, so the rendering time might be more in line with a VPS. This install of wordpress is a vanilla install, no additional plugins, and I&#8217;m using a version of the default theme with a slight modification to it.<br />
The next thing I did was to try out the other site I manage on wordpress. The numbers for this other site was more interesting:</p>
<ul>
<li>Loading the homepage: Memory Used: 9,410,144 bytes; Time to Render Page: 0.0910 seconds.</li>
<li>Loading a category: Memory Used: 9,448,096 bytes; Time to Render Page: 0.2936 seconds.</li>
<li>Loading a post: Memory Used: 9,388,744 bytes; Time to Render Page: 0.1707 seconds.</li>
</ul>
<p>Now the server that this other website sites on is a 1 Dual Core Xeon @ 2.4Ghz, 2GB of Ram, and good IDE drives. The memory usage is higher, but that site is using a number of plugins.</p>
<p>I&#8217;m definitely curious as to why wordpress is using so much memory in both cases. I&#8217;m working on a project right now that one of the items I&#8217;ve built for it is a backoffice admin running in PHP and a propritery framework. I&#8217;ve looked at the numbers for the page times and memory usage, and right now, It&#8217;s no where near wordpress&#8217;s times or memory consumption. The page load times for the admin are in fractions of a second (ie: 0.0051 to 0.0779), about 1/5 the time of wordpress on average. The memory usage for the admin is in range of 750K to 1,275K. Still alot less than wordpress.</p>
<p>This large use of memory by wordpress can have a negative impact when a website received simutaneous connections, there by limiting the concurrent connections a website can received. On this site, I don&#8217;t think I could survive a digg/oprah/slashdot effect, even on a small scale. There has to be a way to improve the basic install of wordpress to be more efficient.</p>
<p>One thing I did that did result in a drop of memory usage, is to remove a number of rss entries that are stored in the wp_options table. I just did this on the other site, and that removed about 600K from memory. The problem is, these rss entries will return. There&#8217;s something in wordpress that queries these rss fields and stores them in the wp_options and gets loaded into the wordpress object. I wish I knew why. This is something that should either be disabled completely, or at the very least, removed from the wordpress object, because they are not needed for use of a website.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisrivera.com/2008/07/09/wordpress-is-a-hog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

