Bug 94691
| Summary: | [Qt] Conversion between Qt array types and JavaScript could be improved | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Simon Hausmann <hausmann> |
| Component: | Platform | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | allan.jensen |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | 60842 | ||
| Bug Blocks: | |||
Simon Hausmann
The current code for converting a QVariant list type to a JS array involves converting each element.
This could be implemented more efficiently by introducing a dedicated array class/type that converts the elements lazily on-demand.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Allan Sandfeld Jensen
I wouldn't even call it a lazy conversion. What we are missing is essentially a Qt wrapper for JSValues, a QtWebKit version of QJSValue.
Btw, this bug probably also blocks bug #39717