WebKit
WebKit copied to clipboard
[WebIDL] Cache extended attributes of WebIDL file
1f8c9e398af4817d65e6acf3a146a8015a4ee85c
[WebIDL] Cache extended attributes of WebIDL file https://bugs.webkit.org/show_bug.cgi?id=241960 Reviewed by NOBODY (OOPS!). * 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.
Is there a mechanism to invalidate the cache when the IDL changes?
Is there a mechanism to invalidate the cache when the IDL changes?
I implemented the same mechanism used by GetDictionaryByType
or GetEnumByType
.
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.
Committed 255617@main (c7da26fb5135): https://commits.webkit.org/255617@main
Reviewed commits have been landed. Closing PR #1769 and removing active labels.