Bug 239451 - [JSC] PropertyTable should have compact mode
Summary: [JSC] PropertyTable should have compact mode
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yusuke Suzuki
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-04-17 21:30 PDT by Yusuke Suzuki
Modified: 2022-04-21 22:43 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuke Suzuki 2022-04-17 21:30:53 PDT
...
Comment 1 Yusuke Suzuki 2022-04-17 21:31:10 PDT
I would try it when I have some time.
Comment 2 Yusuke Suzuki 2022-04-18 00:35:18 PDT
Idea is that, by using uint8_t index & uint8_t property-offset, we can make PropertyTable allocation compact. This is assuming that many of objects are not allocating 256 entries.
Comment 3 Yusuke Suzuki 2022-04-18 05:36:54 PDT
OK, created a patch, now testing.
Comment 4 Yusuke Suzuki 2022-04-18 20:37:38 PDT
Pull request: https://github.com/WebKit/WebKit/pull/312
Comment 5 Yusuke Suzuki 2022-04-21 22:42:20 PDT
Landed https://commits.webkit.org/249881@main (r293210)!
Comment 6 Radar WebKit Bug Importer 2022-04-21 22:43:14 PDT
<rdar://problem/92144394>