<?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>army8735 &#187; 自动装载</title>
	<atom:link href="http://army8735.org/tag/%e8%87%aa%e5%8a%a8%e8%a3%85%e8%bd%bd/feed" rel="self" type="application/rss+xml" />
	<link>http://army8735.org</link>
	<description>我可以A，我也可以-A，我可以同时A和-A。</description>
	<lastBuildDate>Fri, 25 Nov 2011 04:07:52 +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>今儿个办了件蠢事</title>
		<link>http://army8735.org/2008/07/18/15.html</link>
		<comments>http://army8735.org/2008/07/18/15.html#comments</comments>
		<pubDate>Fri, 18 Jul 2008 08:46:52 +0000</pubDate>
		<dc:creator>army8735</dc:creator>
				<category><![CDATA[jssc]]></category>
		<category><![CDATA[自动装载]]></category>

		<guid isPermaLink="false">http://army.512j.com/blog/2008/07/18/%e4%bb%8a%e5%84%bf%e4%b8%aa%e5%8a%9e%e4%ba%86%e4%bb%b6%e8%a0%a2%e4%ba%8b/</guid>
		<description><![CDATA[源自对jssc的改进，原有的自动装载版本是先检测页面中出现的语法文件，然后零碎地一个一个去装载。
新的思路是，先制作好不同组合类型的文件，然后在检测的时候计算出是哪种组合，再整体一次性地去装载。
比如页面有a语法，就只装载a；有a、b就装载a和b的组合文件；有a、b、……g、h的就装载他们的组合。
思路是好的，因为这样减少了http请求，每一次至多只发送一次异步装载便可，然而我忽略了一个最基本的常识：有多少种组合。
用java写了个读取每种文件然后进行组合的程序，刚不久就发现了这个问题，用println语句打印，n长时间都没有结束。
试试计算一下多少种组合：c15/0  + c15/1 + c15/2 + c15/3 + &#8230; + c15/14 + c15/15，这是一个天文数字啊……
]]></description>
			<content:encoded><![CDATA[<p>源自对jssc的改进，原有的自动装载版本是先检测页面中出现的语法文件，然后零碎地一个一个去装载。</p>
<p>新的思路是，先制作好不同组合类型的文件，然后在检测的时候计算出是哪种组合，再整体一次性地去装载。</p>
<p>比如页面有a语法，就只装载a；有a、b就装载a和b的组合文件；有a、b、……g、h的就装载他们的组合。</p>
<p>思路是好的，因为这样减少了http请求，每一次至多只发送一次异步装载便可，然而我忽略了一个最基本的常识：有多少种组合。</p>
<p>用java写了个读取每种文件然后进行组合的程序，刚不久就发现了这个问题，用println语句打印，n长时间都没有结束。</p>
<p>试试计算一下多少种组合：c15/0  + c15/1 + c15/2 + c15/3 + &#8230; + c15/14 + c15/15，这是一个天文数字啊……</p>
]]></content:encoded>
			<wfw:commentRss>http://army8735.org/2008/07/18/15.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

