lincount ~travis
Linear Counting for Dlang
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
Probabilistic Linear Counting for Dlang
auto counter = LPCounter(32); // 32 kilobytes for internal BitArray
/// loop
counter.put(anArrayOrString);
// or
//counter.put(anUint);
//counter.put(anUlong); // not that the 3 and 3L is different entities!
//counter.put(anUUID);
size_t count = counter.count;
building the example:
dub build -c example
then generate a random file with newlines:
< /dev/urandom tr -dc "\t\n [:alnum:]" | head -n 100000 | ./lincount 128
or just
cat /some/file | sort | uniq | ./lincount
Licence:
www.boost.org/LICENSE10.txt, Boost License 1.0
- ~travis released 7 years ago
- tamediadigital/lincount
- BSL-1.0
- Copyright © 2016 Tamedia AG
- Authors:
- Dependencies:
- none
- Versions:
-
0.1.0 2017-Mar-29 0.0.3 2017-Jan-28 0.0.2 2016-Apr-09 0.0.1 2016-Apr-09 ~master 2017-Mar-29 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
107 downloads total
-
- Score:
- 1.3
- Short URL:
- lincount.dub.pm