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

graphql / graphql-js / 2818
99%
master: 98%

Build:
Build:
LAST BUILD BRANCH: directives
DEFAULT BRANCH: master
Ran 08 Dec 2017 01:55AM UTC
Jobs 1
Files 174
Run time 11s
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
2818

push

travis-ci

leebyron
Perf: memoize collectSubfields

Collecting subfields occurs after resolving a field's value and before resolving subfield values. This step collects fragment spreads and checks inline fragment conditions. When fetching a list of things, this step is computed with the same inputs and expecting the same outputs for each item in the list. Memoizing ensures the work is done at most once per type returned from a list.

I tested this against the introspection query (which is both synchronous and complex) against a large schema and saw a ~15%-25% reduction in runtime. In practice I don't expect most queries to see this level of speedup as most queries are limited by backend communication and not execution overhead.

3943 of 4452 branches covered (88.57%)

13 of 13 new or added lines in 1 file covered. (100.0%)

9616 of 9750 relevant lines covered (98.63%)

1217.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2818.1 08 Dec 2017 01:55AM UTC 0
98.63
Travis Job 2818.1
Source Files on build 2818
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2818
  • 43622232 on github
  • Next Build on memo-collect-subfields (#3065)
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