Skip to content

Instantly share code, notes, and snippets.

@az0
az0 / gi.patch
Created February 14, 2025 05:52
pygobject patch by soreau
diff --git a/gi/pygenum.c b/gi/pygenum.c
index 66c872e4..ea472f79 100644
--- a/gi/pygenum.c
+++ b/gi/pygenum.c
@@ -81,7 +81,7 @@ pyg_enum_from_gtype (GType gtype, int value)
static void
add_value (PyObject *dict, const char *value_nick, int value)
{
- g_autofree char *upper = g_ascii_strup(value_nick, -1);
+ char *upper = g_ascii_strup(value_nick, -1);
"""
Benchmark improvement in BleachBit `CleanerML.py`
This script isolates the XML parsing from other operations, except
disk I/O, but the OS should cache it.
How to run:
- copy this script into the root directory of the bleachbit repo
- put the old parser in bleachbit/CleanerML.py
- put the new parser in bleachbit/CleanerML_new.py