Bug 86960

Summary: [EFL] Clients should be able to set page cache capacity.
Product: WebKit Reporter: Mikhail Pozdnyakov <mikhail.pozdnyakov>
Component: WebKit EFLAssignee: Mikhail Pozdnyakov <mikhail.pozdnyakov>
Status: RESOLVED FIXED    
Severity: Normal CC: gyuyoung.kim, lucas.de.marchi, rakuco, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch
none
patch v2 (fixed api description, typo in changelog, efl wrapper is used in _ewk_init_body) none

Mikhail Pozdnyakov
Reported 2012-05-20 03:43:06 PDT
There should be an api setting page cache capacity, so that a client can improve document load speed substantially by caching a large number previously viewed pages or reduce memory usage decreasing the size of page cache. This setting is exported in other WebKit ports (Qt, GTK, MAC) either as a separate setting or as a part of caching model.
Attachments
patch (2.88 KB, patch)
2012-05-20 05:38 PDT, Mikhail Pozdnyakov
no flags
patch v2 (fixed api description, typo in changelog, efl wrapper is used in _ewk_init_body) (3.77 KB, patch)
2012-05-21 06:37 PDT, Mikhail Pozdnyakov
no flags
Mikhail Pozdnyakov
Comment 1 2012-05-20 05:38:05 PDT
Raphael Kubo da Costa (:rakuco)
Comment 2 2012-05-20 14:26:41 PDT
Comment on attachment 142901 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=142901&action=review The addition itself looks fine, but you should mention what the default is. BTW, _ewk_init_body() calls setCapacity() directly, you might want to route that call via ewk_settings now. > Source/WebKit/efl/ChangeLog:9 > + Those will be used both by clients ant DRT Layout Test Controller. Nitpick: s/ant/and/. > Source/WebKit/efl/ewk/ewk_settings.h:302 > + * The page cache improves user experience when navigating forth or back > + * to pages in the forward/back history. It'd be good to describe how it achieves this improvement: what does it cache, for example? > Source/WebKit/efl/ewk/ewk_settings.h:306 > +EAPI unsigned ewk_settings_page_cache_capacity_get(); This is a public header used by C applications, so you need to use foo(void) instead of foo().
Mikhail Pozdnyakov
Comment 3 2012-05-21 06:37:35 PDT
Created attachment 143021 [details] patch v2 (fixed api description, typo in changelog, efl wrapper is used in _ewk_init_body)
Mikhail Pozdnyakov
Comment 4 2012-05-21 06:39:12 PDT
(In reply to comment #2) > (From update of attachment 142901 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=142901&action=review > > The addition itself looks fine, but you should mention what the default is. BTW, _ewk_init_body() calls setCapacity() directly, you might want to route that call via ewk_settings now. > > > Source/WebKit/efl/ChangeLog:9 > > + Those will be used both by clients ant DRT Layout Test Controller. > > Nitpick: s/ant/and/. > > > Source/WebKit/efl/ewk/ewk_settings.h:302 > > + * The page cache improves user experience when navigating forth or back > > + * to pages in the forward/back history. > > It'd be good to describe how it achieves this improvement: what does it cache, for example? > > > Source/WebKit/efl/ewk/ewk_settings.h:306 > > +EAPI unsigned ewk_settings_page_cache_capacity_get(); > > This is a public header used by C applications, so you need to use foo(void) instead of foo(). Thanks for review. Fixed in https://bugs.webkit.org/attachment.cgi?id=143021.
Raphael Kubo da Costa (:rakuco)
Comment 5 2012-05-21 08:06:22 PDT
Comment on attachment 143021 [details] patch v2 (fixed api description, typo in changelog, efl wrapper is used in _ewk_init_body) Looks good, thank you.
Csaba Osztrogonác
Comment 6 2012-05-21 08:34:08 PDT
Comment on attachment 143021 [details] patch v2 (fixed api description, typo in changelog, efl wrapper is used in _ewk_init_body) rs=me.
WebKit Review Bot
Comment 7 2012-05-21 08:54:19 PDT
Comment on attachment 143021 [details] patch v2 (fixed api description, typo in changelog, efl wrapper is used in _ewk_init_body) Clearing flags on attachment: 143021 Committed r117785: <http://trac.webkit.org/changeset/117785>
WebKit Review Bot
Comment 8 2012-05-21 08:54:25 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.