Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache improvements #22

Merged
merged 20 commits into from
Nov 7, 2019
Merged

Cache improvements #22

merged 20 commits into from
Nov 7, 2019

Conversation

samdenty
Copy link
Owner

@samdenty samdenty commented Oct 30, 2019

  • Make Accessor#data static
  • Reduce instantiation cost of classes
  • Support keyed interfaces
  • Support for circular keyed values
  • Cache updates 3x as fast

@samdenty samdenty changed the title Performance & bug fixes Cache performance & bug fixes Oct 31, 2019
@changeset-bot
Copy link

changeset-bot bot commented Nov 6, 2019

🦋 Changeset is good to go

Latest commit: 67d4ae1

We got this.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link

codecov bot commented Nov 7, 2019

Codecov Report

Merging #22 into master will increase coverage by 3.9%.
The diff coverage is 82.34%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #22     +/-   ##
=========================================
+ Coverage   75.31%   79.22%   +3.9%     
=========================================
  Files          97      103      +6     
  Lines        1904     2012    +108     
  Branches      427      458     +31     
=========================================
+ Hits         1434     1594    +160     
+ Misses        462      409     -53     
- Partials        8        9      +1
Impacted Files Coverage Δ
gqless/src/utils/computed.ts 33.33% <ø> (ø) ⬆️
packages/utils/src/index.ts 100% <ø> (ø) ⬆️
gqless/src/Accessor/index.ts 100% <ø> (ø) ⬆️
gqless/src/QueryBuilder/buildArguments.ts 74.28% <ø> (ø) ⬆️
gqless/src/Node/abstract/Matchable.ts 77.77% <ø> (+33.33%) ⬆️
gqless/src/helpers/fragmentOn.ts 22.22% <ø> (+2.22%) ⬆️
gqless/src/Node/abstract/index.ts 100% <ø> (ø) ⬆️
gqless/src/Selection/FieldSelection.ts 100% <ø> (ø) ⬆️
gqless/src/Cache/index.ts 100% <100%> (ø) ⬆️
gqless/src/Node/InputNode/InputNode.ts 87.5% <100%> (-2.5%) ⬇️
... and 64 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e822b3f...67d4ae1. Read the comment docs.

# Conflicts:
#	examples/react-github/package.json
#	examples/react-hackernews/package.json
#	gqless/package.json
#	gqless/src/utils/index.ts
#	packages/cli/README.md
#	packages/cli/package.json
#	packages/react/package.json
#	packages/schema/src/index.ts
#	packages/schema/src/schemaNodes.ts
#	packages/utils/package.json
#	packages/utils/src/createEvent.ts
#	packages/utils/src/index.ts
#	yarn.lock
@samdenty samdenty changed the title Cache performance & bug fixes Cache improvements Nov 7, 2019
@samdenty samdenty merged commit 689ebdb into master Nov 7, 2019
@samdenty samdenty deleted the perf branch November 7, 2019 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant