• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

haya14busa / go-vimlparser
84%
master: 83%

Build:
Build:
LAST BUILD BRANCH: paren-expr
DEFAULT BRANCH: master
Repo Added 10 Sep 2016 01:55PM UTC
Files 11
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH performance-export
branch: performance-export
CHANGE BRANCH
x
Reset
  • performance-export
  • ast-node-type
  • ast-walk
  • avoid-reflect
  • ci
  • ci-run-generate
  • fix-lambda-dict
  • fix-minlen
  • fix-parse-cmd
  • fix-wincmd
  • go-closure
  • go-fix-incorrect-e477
  • go-update-builtin-commands
  • go-vimlparser-lambda
  • improve-ci
  • improve-error-msg
  • json-arg
  • master
  • minor-compiler-improvement
  • paren-expr
  • parse-syntax-cmd
  • performance
  • readme
  • reviewdog
  • sum-type

pending completion
101

push

travis-ci

haya14busa
reduce slice allocation when NODE_DICT type conversion

Before:
         .          .    375:
         .          .    376:   case NODE_DICT:
         .          .    377:           var kvs []ast.KeyValue
         .          .    378:           for _, nn := range n.value.([]interface{}) {
         .          .    379:                   kv := nn.([]interface{})
         .        3MB    380:                   k := newAstNode(kv[0].(*VimNode))
         .     2.50MB    381:                   v := newAstNode(kv[1].(*VimNode))
       5MB        5MB    382:                   kvs = append(kvs, ast.KeyValue{Key: k, Value: v})
         .          .    383:           }
         .          .    384:           return &ast.Dict{
         .          .    385:                   Lcurlybrace: pos,
         .          .    386:                   Entries:     kvs,
         .          .    387:           }
         .          .    388:

After:
         .          .    375:
         .          .    376:   case NODE_DICT:
         .          .    377:           entries := n.value.([]interface{})
       2MB        2MB    378:           kvs := make([]ast.KeyValue, 0, len(entries))
         .          .    379:           for _, nn := range entries {
         .          .    380:                   kv := nn.([]interface{})
         .     3.50MB    381:                   k := newAstNode(kv[0].(*VimNode))
         .     3.50MB    382:                   v := newAstNode(kv[1].(*VimNode))
         .          .    383:                   kvs = append(kvs, ast.KeyValue{Key: k, Value: v})
         .          .    384:           }
         .          .    385:           return &ast.Dict{
         .          .    386:                   Lcurlybrace: pos,
       1MB        1MB    387:                   Entries:     kvs,
         .          .    388:           }

3544 of 4231 relevant lines covered (83.76%)

29072.61 hits per line

Relevant lines Covered
Build:
Build:
4231 RELEVANT LINES 3544 COVERED LINES
29072.61 HITS PER LINE
Source Files on performance-export
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
101 performance-export reduce slice allocation when NODE_DICT type conversion Before: . . 375: . . 376: case NODE_DICT: . . 377: var kvs []ast.KeyValue . . 378: fo... push 19 Sep 2016 07:03PM UTC haya14busa travis-ci pending completion  
99 performance-export update benchmarks result in README push 19 Sep 2016 06:38PM UTC haya14busa travis-ci pending completion  
97 performance-export reduce unused Regexp compile push 19 Sep 2016 06:26PM UTC haya14busa travis-ci pending completion  
See All Builds (139)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc