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

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

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

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

263 of 299 relevant lines covered (87.96%)

15.58 hits per line

Jobs
ID Job ID Ran Files Coverage
1 120.1 (FORM_VERSION=4.1) 11 May 2017 12:17PM UTC 0
86.29
Travis Job 120.1
2 120.2 (FORM_VERSION=4.1-snapshot-20170428) 11 May 2017 12:17PM UTC 0
86.29
Travis Job 120.2
3 120.3 (FORM_VERSION=4.1) 11 May 2017 12:17PM UTC 0
86.29
Travis Job 120.3
4 120.4 (FORM_VERSION=4.1-snapshot-20170428) 11 May 2017 12:17PM UTC 0
86.96
Travis Job 120.4
7 120.7 (FORM_VERSION=4.1) 11 May 2017 12:18PM UTC 0
86.29
Travis Job 120.7
8 120.8 (FORM_VERSION=4.1-snapshot-20170428) 11 May 2017 12:18PM UTC 0
86.29
Travis Job 120.8
9 120.9 (FORM_VERSION=4.1) 11 May 2017 12:18PM UTC 0
86.29
Travis Job 120.9
10 120.10 (FORM_VERSION=4.1-snapshot-20170428) 11 May 2017 12:18PM UTC 0
86.29
Travis Job 120.10
11 120.11 (FORM_VERSION=4.1) 11 May 2017 12:19PM UTC 0
87.63
Travis Job 120.11
12 120.12 (FORM_VERSION=4.1-snapshot-20170428) 11 May 2017 12:19PM UTC 0
87.63
Travis Job 120.12
13 120.13 (FORM_VERSION=4.1) 11 May 2017 12:19PM UTC 0
86.29
Travis Job 120.13
14 120.14 (FORM_VERSION=4.1-snapshot-20170428) 11 May 2017 12:19PM UTC 0
86.29
Travis Job 120.14
15 120.15 (FORM_VERSION=4.1) 11 May 2017 12:19PM UTC 0
86.29
Travis Job 120.15
16 120.16 (FORM_VERSION=4.1-snapshot-20170428) 11 May 2017 12:20PM UTC 0
86.29
Travis Job 120.16
17 120.17 (FORM_VERSION=4.1) 11 May 2017 12:20PM UTC 0
86.96
Travis Job 120.17
18 120.18 (FORM_VERSION=4.1-snapshot-20170428) 11 May 2017 12:20PM UTC 0
86.96
Travis Job 120.18
19 120.19 (FORM_VERSION=4.1) 11 May 2017 12:20PM UTC 0
86.29
Travis Job 120.19
20 120.20 (FORM_VERSION=4.1-snapshot-20170428) 11 May 2017 12:20PM UTC 0
86.29
Travis Job 120.20
Source Files on build 120
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #120
  • 00370628 on github
  • Prev Build on dev (#119)
  • Next Build on dev (#122)
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