Ticket #45 (new enhancement)
Consider using repository for page existence checks
| Reported by: | sheep | Owned by: | sheep |
|---|---|---|---|
| Priority: | Low | Milestone: | |
| Component: | Hatta Wiki | Version: | unknown |
| Keywords: | Cc: |
Description
Currently Hatta checks page existence by directly looking if the file exists. Even if the file is not tracked by the repository, it's considered existing if the file is there. This was done for efficiency reasons -- checking for page existence is a common action and the repository access may be slow... But it was never actually verified. It may as well happen that checking whether a file is tracked in an already opened repository is actually faster. This has to be tested.
Change History
Note: See
TracTickets for help on using
tickets.

File-based existence check
Three tries, 1000000 iterations each, result in seconds.
Repository-based existence check
Three tries, 1000000 iterations each, result in seconds.
So it's 3.5 times slower... furthermore, I can double the speed of the file-based check by not checking for symbolic links, which would make the repo check 7 times slower!