Opera 12.15 Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

module.tweaks 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. TWEAK_SEARCH_ENGINE_ACT_MAX_CACHE_BRANCHES pavels
  2. Defines how many ACT braches are kept in cache. One branch is 2560B big.
  3. Unless the device had a very limited memory, the number should be
  4. quite high for a good performance.
  5. Category : memory
  6. Define : ACT_MAX_CACHE_BRANCHES
  7. Depends on : SEARCH_ENGINE
  8. Value : 4000
  9. Value for desktop : 4000
  10. Value for minimal : 250
  11. TWEAK_SEARCH_ENGINE_BTREE_MAX_CACHE_BRANCHES pavels
  12. Defines how many B-tree braches are kept in cache.
  13. Size of one B-tree branch can vary, it's usually between 512B and 4KB.
  14. Unless the device had a very limited memory, the number should be
  15. quite high for a good performance.
  16. Category : memory
  17. Define : BTREE_MAX_CACHE_BRANCHES
  18. Depends on : SEARCH_ENGINE
  19. Value : 2000
  20. Value for desktop : 2000
  21. Value for minimal : 250
  22. TWEAK_SEARCH_ENGINE_VPS_WRAPPER pavels
  23. Use a platform defined wrapper for VisitedSearch, allowing its methods
  24. to be running in a separate thread. If you enable this tweak, the
  25. platform needs to provide an implementation of the abstract
  26. class AsyncVisitedSearch.
  27. The implementation of the wrapper class AsyncVisitedSearch
  28. should ensure that the following messages are received and
  29. handled in a threadsafe manner:
  30. - MSG_VISITEDSEARCH_PREFLUSH
  31. - MSG_VISITEDSEARCH_FLUSH
  32. - MSG_VISITEDSEARCH_COMMIT
  33. When this tweak is enabled and API_PI_OP_THREAD_TOOLS is
  34. imported, then, these messages are posted to the
  35. g_thread_tools. Otherwise the messages are posted to the
  36. g_main_message_handler.
  37. If this tweak is enabled, no message handler is registered, so
  38. the implementation of the wrapper class needs to define and
  39. register such a message handler.
  40. Category : setting
  41. Define : VPS_WRAPPER
  42. Depends on : FEATURE_VISITED_PAGES_SEARCH
  43. Enabled for : none
  44. Disabled for : desktop, smartphone, tv, minimal
  45. TWEAK_SEARCH_ENGINE_PHRASESEARCH roarl
  46. Enables phrase search
  47. Category : setting
  48. Define : SEARCH_ENGINE_PHRASESEARCH
  49. Depends on : SEARCH_ENGINE
  50. Enabled for : desktop
  51. Disabled for : smartphone, tv, minimal
  52. TWEAK_SEARCH_ENGINE_EXPONENTIAL_GROWTH_FILES roarl
  53. Exponential growth files are used to limit the number of fragments
  54. on disk, thereby reducing disk seeks and improving performance.
  55. Files grow in increments that grow as the file grows, so that
  56. the number of fragments become 2*log2(n).
  57. Category : setting
  58. Define : SEARCH_ENGINE_EXPONENTIAL_GROWTH_FILE
  59. Depends on : SEARCH_ENGINE
  60. Enabled for : desktop
  61. Disabled for : smartphone, tv, minimal
  62. TWEAK_SEARCH_ENGINE_EXPONENTIAL_GROWTH_FILE_SMALLEST_SIZE roarl
  63. Defines the default smallest size of exponential growth files.
  64. All of the space is potentially wasted, but it will reduce the
  65. number of fragments by 2*log2(m), where m is this value.
  66. Value should be a power of 2.
  67. Category : performance, memory
  68. Define : EXPONENTIAL_GROWTH_FILE_SMALLEST_SIZE
  69. Depends on : SEARCH_ENGINE_EXPONENTIAL_GROWTH_FILE
  70. Value : 4096
  71. Value for desktop : 4096
  72. Value for minimal : 1024
  73. TWEAK_SEARCH_ENGINE_EXPONENTIAL_GROWTH_FILE_BIGGEST_INCREMENT roarl
  74. Defines the biggest increment of growth of exponential growth files.
  75. Seek time versus sequential reading speed defines a cut-off point
  76. where exponential growth is not important, because the seek time
  77. is much less than the time it takes to read the continous segment.
  78. Value should be a power of 2.
  79. Category : performance, memory
  80. Define : EXPONENTIAL_GROWTH_FILE_BIGGEST_INCREMENT
  81. Depends on : SEARCH_ENGINE_EXPONENTIAL_GROWTH_FILE
  82. Value : 67108864
  83. Value for desktop : 67108864
  84. Value for minimal : 1048576