Skip to content

Instantly share code, notes, and snippets.

View mxmehl's full-sized avatar
🧙

Max Mehl mxmehl

🧙
View GitHub Profile
@mxmehl
mxmehl / keybase.md
Last active January 15, 2018 13:17
My identity proof for keybase.io

Keybase proof

I hereby claim:

  • I am mxmehl on github.
  • I am mxmehl (https://keybase.io/mxmehl) on keybase.
  • I have a public key ASAEQpX_EikbDebniQV4cm8u1OGetyv8xw7aGPFM3Mfy-go

To claim this, I am signing this object:

@mxmehl
mxmehl / grep_compare.py
Last active March 10, 2023 15:36
Performance comparison: What's the fasted way to find a string in differently sized files (Python)
"""Compare different ways to search in a file"""
# See background and results: https://github.com/fsfe/reuse-tool/issues/696#issuecomment-1463976952
import mmap
from pathlib import Path
# from binaryornot.check import is_binary
FILES = (
"10k.bin",