Governance System Perfmance Improvement
This commit is contained in:
1 parent
36e00115ed
commit
d2dd1d9f22
3 files changed
+42
-4
No files matched your search
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"files.exclude": {
|
||||
"**/Data-Storage": true,
|
||||
"**/Documentation": true,
|
||||
"**/Log-Files": true,
|
||||
"**/node_modules": true,
|
||||
"**/Deprecated-Code": true
|
||||
},
|
||||
"search.exclude": {
|
||||
"**/Data-Storage": true,
|
||||
"**/Documentation": true,
|
||||
"**/Log-Files": true,
|
||||
"**/Deprecated-Code": true
|
||||
},
|
||||
"search.maintainFileSearchCache": true
|
||||
}
|
||||
@@ -16,11 +16,18 @@ function newGovernanceUserProfileSpace() {
|
||||
|
||||
let waitingForResponses = 0
|
||||
const BSC_SCAN_RATE_LIMIT_DELAY = 6000
|
||||
const DISTRIBUTION_PROCESS_RECALCULATION_DELAY = 5000
|
||||
let intervalId
|
||||
let reputationByAddress = new Map()
|
||||
|
||||
return thisObject
|
||||
|
||||
function initialize() {
|
||||
/*
|
||||
Here we will run the distribution process, that in turn will run all the programs.
|
||||
*/
|
||||
intervalId = setInterval(UI.projects.governance.functionLibraries.distributionProcess.calculate, DISTRIBUTION_PROCESS_RECALCULATION_DELAY)
|
||||
|
||||
/*
|
||||
Here we will get a list of all github usernames who have a star or fork and are watching the
|
||||
Superalgos Repository. This will later be used to know which user profiles are participating
|
||||
@@ -292,6 +299,9 @@ function newGovernanceUserProfileSpace() {
|
||||
}
|
||||
|
||||
function finalize() {
|
||||
clearInterval(intervalId)
|
||||
intervalId = undefined
|
||||
|
||||
thisObject.githubStars = undefined
|
||||
thisObject.githubWatchers = undefined
|
||||
thisObject.githubForks = undefined
|
||||
@@ -320,10 +330,6 @@ function newGovernanceUserProfileSpace() {
|
||||
function physics() {
|
||||
if (UI.projects.foundations.spaces.designSpace.workspace === undefined) { return }
|
||||
/*
|
||||
Here we will run the distribution process, that in turn will run all the programs.
|
||||
*/
|
||||
UI.projects.governance.functionLibraries.distributionProcess.calculate()
|
||||
/*
|
||||
Load the user profiles with Token Power.
|
||||
*/
|
||||
let userProfiles = UI.projects.foundations.spaces.designSpace.workspace.getHierarchyHeadsByNodeType('User Profile')
|
||||
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"files.exclude": {
|
||||
"**/Data-Storage": true,
|
||||
"**/Documentation": true,
|
||||
"**/Log-Files": true,
|
||||
"**/node_modules": true,
|
||||
"**/Deprecated-Code": true
|
||||
},
|
||||
"search.exclude": {
|
||||
"**/Data-Storage": true,
|
||||
"**/Documentation": true,
|
||||
"**/Log-Files": true,
|
||||
"**/Deprecated-Code": true
|
||||
},
|
||||
"search.maintainFileSearchCache": true
|
||||
}
|
||||
Reference in new issue
Block a user