<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>neutralevil</title>
    <link>https://ruby-china.org/neutralevil</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>Windows Subsystem for Linux 简单测试</title>
      <description>&lt;p&gt;切换到 Insider fast track，终于在今天早上刷到了更新。&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;视频中在 cmd 下输入的 bash 命令，其实是个 Windows 程序，相当于进入 Linux 的入口，没有别的功能。不过可以通过命令行参数运行别的 Linux 程序，给 Windows 程序（IDE/text editor）调用 Linux 命令行程序提供了可能。&lt;/li&gt;
&lt;li&gt;安装方法参照微软官方文档：&lt;a href="https://msdn.microsoft.com/zh-cn/commandline/wsl/install_guide" rel="nofollow" target="_blank"&gt;https://msdn.microsoft.com/zh-cn/commandline/wsl/install_guide&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;运行的时候遇到&lt;code&gt;Error: 0x80070057&lt;/code&gt;，参考这里解决：&lt;a href="https://github.com/Microsoft/BashOnWindows/issues/7" rel="nofollow" target="_blank"&gt;https://github.com/Microsoft/BashOnWindows/issues/7&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;先测试了一下我比较关心的 git 速度，还比较满意，在我的工程目录运行&lt;code&gt;time git status&lt;/code&gt;:&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;git for Windows，预热：
&lt;code&gt;
real    0m56.898s
user    0m24.828s
sys     0m47.358s
&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;git for Windows，预热后：
&lt;code&gt;
real    0m19.624s
user    0m3.015s
sys     0m31.155s
&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;git on WSL，预热：
&lt;code&gt;
real    0m21.565s
user    0m8.078s
sys     0m13.469s
&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;git onWSL，预热后：
&lt;code&gt;
real    0m4.250s
user    0m0.203s
sys     0m4.031s
&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;而且 Windows 版 git 运行时，其进程 CPU 占用率大概 20-30%，Linux 版只有 10% 左右。&lt;/p&gt;</description>
      <author>neutralevil</author>
      <pubDate>Thu, 07 Apr 2016 16:41:51 +0800</pubDate>
      <link>https://ruby-china.org/topics/29616</link>
      <guid>https://ruby-china.org/topics/29616</guid>
    </item>
    <item>
      <title>PragmaticProgrammer 所有电子书 6 折优惠</title>
      <description>&lt;p&gt;优惠码：railssale14
截止到 4 月 25 日，详情见：
&lt;a href="http://pragprog.com/news/rails-sale-40-off-rails-and-more" rel="nofollow" target="_blank"&gt;http://pragprog.com/news/rails-sale-40-off-rails-and-more&lt;/a&gt;&lt;/p&gt;</description>
      <author>neutralevil</author>
      <pubDate>Thu, 24 Apr 2014 10:51:24 +0800</pubDate>
      <link>https://ruby-china.org/topics/18816</link>
      <guid>https://ruby-china.org/topics/18816</guid>
    </item>
  </channel>
</rss>
