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

haya14busa / go-vimlparser / 102
83%

Build:
DEFAULT BRANCH: master
Ran 19 Sep 2016 07:03PM UTC
Jobs 2
Files 9
Run time 1min
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

pending completion
102

Pull #16

travis-ci

web-flow
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:           }
Pull Request #16: Improve performance2: reduce unneeded allocation

525 of 525 new or added lines in 3 files covered. (100.0%)

3544 of 4231 relevant lines covered (83.76%)

29072.61 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
22
100.0
go/export.go
Jobs
ID Job ID Ran Files Coverage
1 102.1 19 Sep 2016 07:03PM UTC 0
83.76
Travis Job 102.1
2 102.2 19 Sep 2016 07:05PM UTC 0
83.76
Travis Job 102.2
Source Files on build 102
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #102
  • Pull Request #16
  • PR Base - master (#96)
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

© 2026 Coveralls, Inc