Skip to content

Instantly share code, notes, and snippets.

gcc regex is terrible.
msvc regex is just a joke.
using code from https://github.com/mariomka/regex-benchmark?tab=readme-ov-file#optimized
default: using msvc default <regex> file.
pmr: copy regex header, change all vector into std::pmr::vector
pmr+my allocator: based on pmr,create my own allocator, and set it with std::pmr::set_default_resource
debug: debug version but with _ITERATOR_DEBUG_LEVEL=0
numbers A - B: A is the time of the function, in ms. B is the count of matches. B means right, A means performance.
@swigger
swigger / kallsyms.py
Created June 17, 2018 04:51 — forked from nlitsme/kallsyms.py
idapython script decoding the linux kernel symbol table
# Linux kernel kallsyms unpacker
# Version 0.2
# Copyright (c) 2010-2013 Igor Skochinsky
#
# This software is provided 'as-is', without any express or implied
# warranty. In no event will the authors be held liable for any damages
# arising from the use of this software.
#
# Permission is granted to anyone to use this software for any purpose,
# including commercial applications, and to alter it and redistribute it