Bug 94691 - [Qt] Conversion between Qt array types and JavaScript could be improved
Summary: [Qt] Conversion between Qt array types and JavaScript could be improved
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 60842
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-22 04:15 PDT by Simon Hausmann
Modified: 2014-02-03 02:31 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Hausmann 2012-08-22 04:15:07 PDT
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.
Comment 1 Allan Sandfeld Jensen 2012-11-11 09:49:56 PST
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