X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/c5d63c549de267dfc5de44f60b619f576e57023d..5ee60968b966f605eb3b0c3119e5366e57b745b8:/doc/tips/optimising_ikiwiki.mdwn?ds=sidebyside diff --git a/doc/tips/optimising_ikiwiki.mdwn b/doc/tips/optimising_ikiwiki.mdwn index cf412d266..2999573ac 100644 --- a/doc/tips/optimising_ikiwiki.mdwn +++ b/doc/tips/optimising_ikiwiki.mdwn @@ -1,3 +1,5 @@ +[[!meta date="2009-10-15 18:42:46 -0400"]] + Ikiwiki is a wiki compiler, which means that, unlike a traditional wiki, all the work needed to display your wiki is done up front. Where you can see it and get annoyed at it. In some ways, this is better than a wiki @@ -17,19 +19,19 @@ it's slow, and get the problem fixed!) Are you building your wiki by running a command like this? - ikiwiki -setup my.setup + ikiwiki --setup my.setup If so, you're always telling ikiwiki to rebuild the entire site, from scratch. But, ikiwiki is smart, it can incrementally update a site, building only things affected by the changes you make. You just have to let it do so: - ikiwiki -setup my.setup -refresh + ikiwiki --setup my.setup --refresh Ikiwiki automatically uses an incremental refresh like this when handing a web edit, or when run from a [[rcs]] post-commit hook. (If you've configured the hook in the usual way.) Most people who have run into this -problem got in the habit of running `ikiwiki -setup my.setup` by hand +problem got in the habit of running `ikiwiki --setup my.setup` by hand when their wiki was small, and found it got slower as they added pages. ## use the latest version @@ -174,7 +176,7 @@ Finally, let's think about how huge number of pages can affect ikiwiki. command. Obviously, more files will make it take longer. You can avoid this scanning overhead, if you're using git, by setting - `only_committed_changes`. This makes ikiwiki -refresh query git for + `only_committed_changes`. This makes ikiwiki --refresh query git for changed files since the last time, which tends to be a lot faster. However, it only works if all files in your wiki are committed to git (or stored in the [[/plugins/transient]] underlay). @@ -205,7 +207,7 @@ The best way to do it is: * Install [[!cpan Devel::NYTProf]] * `PERL5OPT=-d:NYTProf` -* `export PER5OPT` +* `export PERL5OPT` * Now run ikiwiki as usual, and it will generate a `nytprof.out` file. * Run `nytprofhtml` to generate html files. * Those can be examined to see what parts of ikiwiki are being slow.