Comments (1)
My idea was to continue reading the input (or previously-written part of output when we're low on RAM) sequentially (tricky to do otherwise when the input is lines of varying lengths), but buffer it rather than process it against the hash table line by line. Once the buffer fills up, process it with multiple threads (mark for removal entries that are seen in the global hash table). Then repeat for the next buffer's worth of input. I guess a reasonable buffer size can be a few MB (maybe similar to L3 cache size). A complication is dealing with duplicates within a buffer - perhaps that needs to be taken care of separately, maybe using a separate smaller hash table, and maybe sequentially.
Random reading of input is also possible, perhaps skipping until the start of a new line and somehow processing the partial lines on block boundaries separately.
I suggested OpenMP because that's what we already use in JtR, and because it's easy to use in this way. Since you already use explicit pthreads, you probably shouldn't mix different threading technologies. You can implement the above with either technology.
from duplicut.
Related Issues (20)
- UX: Add ansi terminal colors to program status if STDOUT isatty()
- Use a more performant hash function HOT 1
- Transform lines to lowercase HOT 3
- Improve `MEDIUM_LINE_BYTES` guessing with heuristic HOT 1
- core/status: status display sometimes fails to show coherent output
- Verbose output HOT 2
- Output to stdout by default HOT 1
- [Chore] Typo HOT 1
- Ideas for enhancement HOT 4
- Purge both duplicates HOT 1
- [enhancement] Sort options HOT 1
- Run Duplicut on Windows? HOT 1
- Duplicut not cutting all duplicates HOT 7
- No output produced (0 byte) for 9.2 Gb tab separated text file HOT 6
- how to use in kali linux? HOT 2
- Can this program sort the password dictionary? HOT 1
- Why any line longer than 255 chars is ignored? HOT 3
- Add support for removing duplicates from other file HOT 2
- Inconsistency sometimes occurs across multiple runs on the same file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duplicut.