Tweak viewport config settings.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 23 Oct 2009 03:48:08 +0000 (21:48 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 23 Oct 2009 05:48:02 +0000 (23:48 -0600)
limit_factor isn't worth having a config option - the default option
should be fine for all cases.

Now that the server side code has become faster, increase performance
parameters for viewport listing.

imp/config/conf.xml
imp/docs/UPGRADING
imp/js/DimpBase.js
imp/js/ViewPort.js
imp/templates/javascript_defs_dimp.php

index 6f69879..0b2fb66 100644 (file)
    <configsection name="viewport">
     <configinteger name="buffer_pages" desc="The number of viewable pages to
     send to the browser per server access when listing
-    messages.">8</configinteger>
-    <configinteger name="limit_factor" desc="When browsing through a message
-    list, if a user comes within this percentage of the end of the current
-    cached viewport, the browser will send a background request to the server
-    to retrieve the next slice of the message list.">35</configinteger>
+    messages.">10</configinteger>
     <configinteger name="viewport_wait" desc="How long, in seconds, to wait
     before displaying an informational message to users that the message list is
-    still being built. Set to 0 to disable messages.">12</configinteger>
+    still being built. Set to 0 to disable messages.">10</configinteger>
    </configsection>
   </configsection>
  </configtab>
index f87673c..88c3e83 100644 (file)
@@ -43,6 +43,8 @@ The 'max_from_chars' and 'max_subj_chars' configuration options for the
 minimal (mimp) display have been moved to preferences ('mimp_max_from_chars'
 and 'mimp_max_subj_chars').
 
+The 'limit_factor' configuration option has been removed.
+
 
 Preferences
 -----------
index 5284fea..aad85f2 100644 (file)
@@ -406,7 +406,6 @@ var DimpBase = {
             buffer_pages: DIMP.conf.buffer_pages,
             content_class: 'msglist',
             empty_msg: DIMP.text.vp_empty,
-            limit_factor: DIMP.conf.limit_factor,
             page_size: DIMP.conf.splitbar_pos,
             show_split_pane: DIMP.conf.preview_pref,
             split_bar: 'splitBar',
index 8bb58f7..1d4edd6 100644 (file)
@@ -118,7 +118,7 @@ var ViewPort = Class.create({
     initialize: function(opts)
     {
         this.opts = Object.extend({
-            buffer_pages: 5,
+            buffer_pages: 10,
             limit_factor: 35,
             lookbehind: 40
         }, opts);
index 769ca68..9716151 100644 (file)
@@ -68,7 +68,6 @@ $code['conf'] = array_filter(array(
     'flags' => $flags,
     'fsearchid' => IMP_Search::MBOX_PREFIX . IMP_Search::DIMP_FILTERSEARCH,
     'ham_spammbox' => intval(!empty($GLOBALS['conf']['notspam']['spamfolder'])),
-    'limit_factor' => intval($GLOBALS['conf']['dimp']['viewport']['limit_factor']),
     'login_view' => $GLOBALS['prefs']->getValue('dimp_login_view'),
     'name' => $GLOBALS['registry']->get('name', 'imp'),
     'popup_height' => 610,