File: performance

package info (click to toggle)
uzbl 0.0.0~git.20100403-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 760 kB
  • ctags: 783
  • sloc: ansic: 3,952; python: 3,082; sh: 353; makefile: 127
file content (9 lines) | stat: -rw-r--r-- 734 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
The usage of external scripts causes some slowdowns. (forking new processes, running interpreted scripts,...)
It can be interesting to keep an eye on this, though I don't expect major problems.

** History file size/performance
each new pageload -> fopen(history_file, "a"), fwrite one line, fclose.
I use utf8, so unless you use characters that are "special" (chinese etc) each character takes 1 byte.
So, assume each entry is about 80 chars, you visit 100 pages per day (?), and you wonder when your history file will be 50MB big:
(50 * 1000 * 1000 ) / ( 80 * 100 ) = 6250 days or 17 years.
There is code to run a benchmark in the 'extra' dir.  For results & interpretation, see http://dieter.plaetinck.be/poor_mans_dmenu_benchmark