Optimize Brainflayer performance and memory
masterBrainflayer is single-threaded. To utilize multiple CPU cores, you must distribute the work yourself (e.g., by running multiple processes). Because Brainflayer uses mmap for data files in shared memory, running multiple instances does not significantly increase RAM usage.
Recommended optimization flags:
-m FILE: Load a pre-generatedecmulttable fromFILE(created viaecmtabgen). This significantly reduces startup time and allows multiple processes to share the same table in memory.-f FILE: Verify the check bloom filter against a file containing all hash160s (generated viasort -u example.hex | xxd -r -p > example.bin). This suppresses false positives caused by the finite size of the bloom filter.