小编You*_*uri的帖子

PHP Dart游戏计算性能缓慢

我已经根据分数计算了一次计算.

例如,如果分数当前为140,则该类返回一个包含可能抛出的集合的数组:

[10] => Array
    (
        [0] => T18
        [1] => T18
        [2] => D16
    )

[11] => Array
    (
        [0] => T18
        [1] => T16
        [2] => D19
    )

[13] => Array
    (
        [0] => T17
        [1] => T17
        [2] => D19
    )

[14] => Array
    (
        [0] => 50
        [1] => 50
        [2] => D20
Run Code Online (Sandbox Code Playgroud)

但计算这样的事情是相当缓慢的.有什么方法可以优化这个课程吗?

<?php
/**
 * PHP Dartgame calculating class
 * @author Youri van den Bogert
 */

class Darts {

    /**
     * @var string
     */ …
Run Code Online (Sandbox Code Playgroud)

php class permutation

11
推荐指数
1
解决办法
719
查看次数

无法启动jenkins奴隶

当我尝试启动我的jenkins slave时,slave存在错误:

[04/14/17 17:22:06] [SSH] Checking java version of java
[04/14/17 17:22:06] [SSH] java -version returned 1.7.0_121.
[04/14/17 17:22:06] [SSH] Starting sftp client.
[04/14/17 17:22:06] [SSH] Copying latest slave.jar...
[04/14/17 17:22:06] [SSH] Copied 719,269 bytes.
Expanded the channel window size to 4MB
[04/14/17 17:22:06] [SSH] Starting slave process: cd "/home/jenkins" && java     -jar slave.jar -text
<===[JENKINS REMOTING CAPACITY]===><===[HUDSON TRANSMISSION BEGINS]===channel started
Slave JVM has not reported exit code. Is it still running?
[04/14/17 17:22:11] Launch failed - cleaning up connection …
Run Code Online (Sandbox Code Playgroud)

jenkins jenkins-slave

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

标签 统计

class ×1

jenkins ×1

jenkins-slave ×1

permutation ×1

php ×1