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

feat: improve performance with new version of PJS #1520

Merged
merged 3 commits into from
Oct 22, 2024
Merged

Conversation

filvecchiato
Copy link
Contributor

The provider injected in the ApiPromise now accepts an optional cache size, which when set to zero will allow PJS to bypass caching on the requests, improving performance and decreasing memory leaks.

TODO: PJS version needs to be patched in package.json

Only merge this with the release of PJS coming in the next week or so (after 17th October 2024, possibly v13.2.2, TBD)

Copy link
Contributor

@Imod7 Imod7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The linter needs to be run and the rest I will test as soon as pjs gets updated. Great work!

@filvecchiato
Copy link
Contributor Author

I think the linter is currently failing since the PJS/api version does not include the changes to the provider outlined in the PR

@Imod7 Imod7 marked this pull request as ready for review October 22, 2024 16:25
@Imod7 Imod7 requested a review from a team as a code owner October 22, 2024 16:25
@Imod7
Copy link
Contributor

Imod7 commented Oct 22, 2024

Just to mention for any other reviewers, I approved because:

  • If I pull the changes from master branch into this one and then yarn build, it looks good which was the goal.
  • If the changes from master are not merged here, it does not build and that is expected.

Same applies for the linter.

Copy link
Member

@TarikGul TarikGul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Imod7 Feel free to update this PR so the linter will pass :)

@Imod7 Imod7 merged commit e0ad7c1 into master Oct 22, 2024
15 checks passed
@Imod7 Imod7 deleted the fix_performance branch October 22, 2024 17:13
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.

3 participants