Skip to content

Commit

Permalink
update: v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lxx.imac committed Jun 14, 2019
1 parent 1f3e934 commit 7180c9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: node_js
node_js:
- "10"
before_deploy:
- npx stylus ./dist/main.styl
- npm run build
- echo "demo.costream.org" >> dist/CNAME
deploy:
Expand Down
2 changes: 1 addition & 1 deletion src/LifeCycle/workEstimate.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function WorkEstimate(ssg)
/* 检查每一个operatorNode的body(包括init,work和window)*/
var body = flat.contents.operBody;
var w_init = 0//body.init ? body.init.WorkEstimate(): 0 ;
var w_steady = 60 //body.work ? body.work.WorkEstimate() : 0;
var w_steady = (body.work + '').match(/\w+|[-+*/=<>?:]/g).length *10 //body.work ? body.work.WorkEstimate() : 0;
w_steady += (flat.outFlatNodes.length + flat.inFlatNodes.length) * 20; //多核下调整缓冲区head和tail
ssg.mapInitWork2FlatNode.set(flat, w_init)
ssg.mapSteadyWork2FlatNode.set(flat, w_steady)
Expand Down

0 comments on commit 7180c9a

Please sign in to comment.