]> git.mxchange.org Git - hub.git/commitdiff
The key producer may produce as twice as keys per second:
authorRoland Häder <roland@mxchange.org>
Tue, 5 Apr 2011 23:39:08 +0000 (23:39 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 5 Apr 2011 23:39:08 +0000 (23:39 +0000)
- The key producer runs now with an interval delay of 5ms
- Some debug messages/comments updated

application/hub/config.php
application/hub/main/iterator/producer/keys/class_TestUnitKeyProducerIterator.php

index de147ba7b08a01a0fc7fc1d5fe3c949c6ba66f8e..47311bf1909271589ece9b33afc95006efd0b40c 100644 (file)
@@ -307,7 +307,7 @@ $cfg->setConfigEntry('stacker_object_registry_max_size', 100);
 $cfg->setConfigEntry('stacker_outgoing_queue_max_size', 1000);
 
 // CFG: STACKER-INCOMING-QUEUE-MAX-SIZE
-$cfg->setConfigEntry('stacker_incoming_queue_max_size', 1000);
+$cfg->setConfigEntry('stacker_incoming_queue_max_size', 100000);
 
 // CFG: NEWS-MAIN-LIMIT
 $cfg->setConfigEntry('news_main_limit', 5);
@@ -445,7 +445,7 @@ $cfg->setConfigEntry('task_cruncher_test_unit_producer_max_runs', 0);
 $cfg->setConfigEntry('task_cruncher_key_producer_startup_delay', 750);
 
 // CFG: TASK-CRUNCHER-KEY-PRODUCER-INTERVAL-DELAY
-$cfg->setConfigEntry('task_cruncher_key_producer_interval_delay', 10);
+$cfg->setConfigEntry('task_cruncher_key_producer_interval_delay', 5);
 
 // CFG: TASK-CRUNCHER-KEY-PRODUCER-MAX-RUNS
 $cfg->setConfigEntry('task_cruncher_key_producer_max_runs', 0);
index 5feea77bafc7cf6af9c09c8c9158d5e0b7e14d6d..77501e46f86c1ac84f67c689db0146e500dcc0b8 100644 (file)
@@ -49,14 +49,14 @@ class TestUnitKeyProducerIterator extends BaseIterator implements Iterator {
                // Get key length
                $this->keyLength = $this->getConfigInstance()->getConfigEntry('test_unit_random_secret_key_length');
 
-               // Make sure the key length isn't getting to big (32 byte = 256 bit is really a lot)
+               // Make sure the key length isn't getting to big (32 byte = 256 bit is really, really a lot!)
                assert($this->keyLength <= (8 * 32));
 
                // Set max bits entry
                $this->maxBits = pow(2, $this->keyLength);
 
                // Debug message
-               $this->debugOutput('ITERATOR: maxBits=' . $this->maxBits . ',keyLength=' . $this->keyLength);
+               $this->debugOutput('ITERATOR: maxBits=' . $this->maxBits . ',keyLength=' . $this->keyLength . ' bits');
        }
 
        /**