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

[WebIDL] Cache extended attributes of WebIDL file #1769

Merged

Conversation

dpino
Copy link
Contributor

@dpino dpino commented Jun 24, 2022

@weinig
Copy link
Contributor

weinig commented Jun 24, 2022

Is there a mechanism to invalidate the cache when the IDL changes?

@dpino dpino force-pushed the impr/cache-extended-atttributes branch from 147c7e0 to 4b2c602 Compare June 27, 2022 04:24
@dpino
Copy link
Contributor Author

dpino commented Jun 27, 2022

Is there a mechanism to invalidate the cache when the IDL changes?

I implemented the same mechanism used by GetDictionaryByType or GetEnumByType.

@webkit-early-warning-system webkit-early-warning-system added the merging-blocked Applied to prevent a change from being merged label Jun 27, 2022
@dpino dpino requested a review from weinig July 18, 2022 08:42
@dpino dpino removed the merging-blocked Applied to prevent a change from being merged label Jul 26, 2022
@dpino dpino force-pushed the impr/cache-extended-atttributes branch from 4b2c602 to 229e31a Compare July 26, 2022 14:07
@dpino dpino requested a review from cdumez as a code owner July 26, 2022 14:07
@dpino dpino force-pushed the impr/cache-extended-atttributes branch from 229e31a to 1f8c9e3 Compare July 27, 2022 00:13
@dpino dpino self-assigned this Jul 27, 2022
@darinadler
Copy link
Member

Is there a mechanism to invalidate the cache when the IDL changes?

No. But it’s an in-memory cache during the runtime of the script, not an on-disk cache.

Copy link
Member

@darinadler darinadler left a comment

Choose a reason for hiding this comment

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

This is fine.

@dpino dpino added the merge-queue Applied to send a pull request to merge-queue label Oct 17, 2022
https://bugs.webkit.org/show_bug.cgi?id=241960

Reviewed by Darin Adler.

* Source/WebCore/bindings/scripts/CodeGenerator.pm:

(GetInterfaceExtendedAttributesFromName): Store results into a cache
indexeded by IDL filename, so we don't need to parse the same file
again.
(ComputeIsCallbackInterface): Use slurp function to read file contents.
(ComputeIsCallbackFunction): Use slurp function to read file contents.

Canonical link: https://commits.webkit.org/255617@main
@webkit-commit-queue
Copy link
Collaborator

Committed 255617@main (c7da26f): https://commits.webkit.org/255617@main

Reviewed commits have been landed. Closing PR #1769 and removing active labels.

@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Oct 17, 2022
@webkit-early-warning-system webkit-early-warning-system merged commit c7da26f into WebKit:main Oct 17, 2022
@dpino dpino deleted the impr/cache-extended-atttributes branch December 29, 2022 06:59
yury-s pushed a commit to yury-s/WebKit that referenced this pull request Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants