1
1
mirror of http://git.sesse.net/plocate synced 2025-10-05 21:52:39 +02:00
Manfred Schwarb a3644e43d9 Remove ConditionACPower=true.
A lot of people use laptops like mobile phones, they use it mostly being on
battery and plug it over night, when the device is turned off, or when battery
level is really down. Then most likely the laptop is on battery when the
plocate update job is due. If you are on battery, systemd services with
ConditionACPower=true do silently nothing, the job is not started and there is
only a minor log notice about it which will go unnoticed most likely. As
plocate is really fast, remove ConditionACPower=true from
plocate-updatedb.service.in.
2024-12-09 07:08:28 +01:00
2020-09-27 22:53:55 +02:00
2021-08-23 10:11:20 +02:00
2020-11-25 00:58:09 +01:00
2020-11-25 00:58:09 +01:00
2020-09-27 22:53:55 +02:00
2021-12-28 14:20:04 +01:00
2022-06-25 10:01:49 +02:00
2024-01-06 14:44:42 +01:00
2024-12-09 07:07:01 +01:00
2024-11-24 23:14:30 +01:00
2021-10-05 23:02:09 +02:00
2022-02-24 00:43:38 +01:00
2020-10-17 09:55:45 +02:00
2021-02-13 01:30:27 +01:00

plocate is a locate based on posting lists. Compared to mlocate,
it is much faster, and its index is much smaller. updatedb speed
is similar (or you can convert mlocate's index to plocate format
using plocate-build). It supports most mlocate options;
see --help or the man page (man -l plocate.1) for more information.

The file format may still change (if so, plocate will notify you itself
that you need to rerun plocate-build or updatedb). To build and install,
you will need a C++17 compiler and a development package for Zstd
(https://facebook.github.io/zstd/). liburing (https://github.com/axboe/liburing)
and a kernel supporting io_uring (Linux 5.1 or newer) is optional,
but strongly recommended for best performance, especially if you
do not have an SSD. Installation is run as:

  meson setup obj
  cd obj
  ninja
  sudo addgroup --system plocate
  sudo ninja install
  sudo systemctl enable --now plocate-updatedb.timer

To build the database for the first time after install, you can do

  sudo updatedb

The initial run of updatedb needs to scan the entire filesystem.
Subsequent runs of updatedb will be much faster, and create a slightly (~5%)
smaller database.

If you wish to run some tests of the TurboPFor implementation against
the reference implementation, you can check it out and run as follows:

  git clone https://github.com/powturbo/TurboPFor-Integer-Compression
  ( cd TurboPFor-Integer-Compression && make -j8 )
  cd obj
  ninja reconfigure
  ninja bench

plocate (except updatedb), and the plocate-specific changes to updatedb,
is Copyright 2020 Steinar H. Gunderson <steinar+plocate@gunderson.no>.
Licensed under the GNU General Public License, either version 2,
or (at your option) any later version. See the included file COPYING.

updatedb is Copyright (C) 2005, 2007 Red Hat, Inc. All rights reserved.
Licensed under the GNU General Public License, version 2. See the
included file COPYING.
Description
mirror of plocatelocate based on posting lists. Compared to mlocate, it is much faster, and its index is much smaller
https://plocate.sesse.net Readme 389 KiB
Languages
C++ 87.4%
Roff 7.6%
C 2.4%
Meson 2.4%
Shell 0.2%