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

tueda / python-form / 120 / 4
96%
master: 88%

Build:
Build:
LAST BUILD BRANCH: dev-bundle
DEFAULT BRANCH: master
Ran 11 May 2017 12:17PM UTC
Files 4
Run time 0s
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

11 May 2017 12:13PM UTC coverage: 86.957% (+0.8%) from 86.149%
FORM_VERSION=4.1-snapshot-20170428

push

travis-ci

tueda
Improve reading from FORM for long expressions

Fix unnecessarily slow reading from FORM for long texts, which was
caused by redundant searches of the end marker.

A benchmark test on a desktop PC:
```
import form

with form.open() as f:
    f.write('''
        AutoDeclare Vector p;
        Local F = g_(0,p1,...,p18);
        trace4,0;
        .sort
    ''')
    s = f.read('F')
    print(len(s))
```
The result contains 986841 terms and the text length is 64144664.

python 2.7.13 : 0m4.293s  -->  0m2.621s
python 3.6.1  : 0m4.440s  -->  0m2.549s
pypy 5.7.1    : 0m5.035s  -->  0m3.109s
pypy3 5.7.1   : 0m7.288s  -->  0m4.639s

The corresponding FORM program (with dumping the output to a file) spent

form : 0m2.449s

260 of 299 relevant lines covered (86.96%)

0.87 hits per line

Source Files on job 120.4 (FORM_VERSION=4.1-snapshot-20170428)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 120
  • Travis Job 120.4
  • 00370628 on github
  • Prev Job for FORM_VERSION=4.1-snapshot-20170428 on dev (#119.20)
  • Next Job for FORM_VERSION=4.1-snapshot-20170428 on dev (#122.18)
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