小编Ada*_*m L的帖子

Terraform 在 Windows 上启动缓慢。已知问题还是只有我一个?

在 Windows 上运行 Terraform 二进制文件的执行速度一再缓慢。在 mac/linux 上运行应用程序,仅对于简单的outputs.tf(没有main.tf)几乎可以立即启动和完成

output "0" {
  value = "${cidrsubnet(var.app_vpc_cidr, 7, 0)}"
}
output "1" {
  value = "${cidrsubnet(var.app_vpc_cidr, 7, 1)}"
}
output "2" {
  value = "${cidrsubnet(var.app_vpc_cidr, 7, 2)}"
}
Run Code Online (Sandbox Code Playgroud)

运行以下命令行:

$ date; time terraform.exe apply; date
Run Code Online (Sandbox Code Playgroud)

给出输出:

Tue, Oct 03, 2017  3:07:00 PM

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

Outputs:

0 = 10.11.0.0/23
1 = 10.11.2.0/23
2 = 10.11.4.0/23

real    0m13.098s
user    0m1.217s
sys     0m0.140s
Tue, Oct 03, …
Run Code Online (Sandbox Code Playgroud)

windows performance terraform

5
推荐指数
1
解决办法
1480
查看次数

Flex 4:火花面板中的控件仍然显示在面板尺寸之外

我在进行一些程序化面板调整时发现了这一点:当火花面板中的组件位于物理面板边界之外时,它们仍然可见.mx面板不会发生这种情况.

在Windows 7上运行Flex 4.1

我尝试在火花面板中放置mx和spark控件,它们都出现在边界之外.请注意,mx面板不会发生这种情况.

我错过了什么使火花表现得像mx?

谢谢 !

示例代码:

    <?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
                       xmlns:s="library://ns.adobe.com/flex/spark" 
                       xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:Panel x="6" y="8" width="157" height="200">
        <s:Label x="2" y="10" text="ABCDEFGHIJKL" width="258" height="35" textAlign="right"/>
        <mx:Label text="Label" x="232" y="55"/>
        <mx:Button x="125" y="96" label="Button"/>
    </s:Panel>
    <mx:Panel x="10" y="216" width="200" height="200" layout="absolute">
        <mx:Label x="0" y="46" text="Label" width="217" textAlign="right"/>
        <mx:Button x="163" y="88" label="Button"/>
    </mx:Panel> 
</s:WindowedApplication>
Run Code Online (Sandbox Code Playgroud)

apache-flex controls panel visible

3
推荐指数
1
解决办法
1618
查看次数