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

graphql / graphql-js / 3067
98%

Build:
DEFAULT BRANCH: master
Ran 10 Jan 2018 03:37AM UTC
Jobs 1
Files 184
Run time 10s
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
3067

push

travis-ci

web-flow
Perf: memoize collectSubfields (#1130)

* 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.

* Include context in memoization, Factor out memoize3

4139 of 4636 branches covered (89.28%)

10416 of 10554 relevant lines covered (98.69%)

1541.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3067.1 10 Jan 2018 03:37AM UTC 0
98.69
Travis Job 3067.1
Source Files on build 3067
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3067
  • 358df97a on github
  • Prev Build on master (#3064)
  • Next Build on master (#3078)
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