From 5377d99cf38568d28b1b0320d530bf2c167a9320 Mon Sep 17 00:00:00 2001
From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Mon, 2 Aug 2010 00:17:48 -0700
Subject: [PATCH] setup: increase requirement on foolscap from >= 0.4.1 to >=
 0.5.1 to avoid the foolscap performance bug with transferring large mutable
 files

---
 _auto_deps.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/_auto_deps.py b/_auto_deps.py
index c55c9aed..40e9d952 100644
--- a/_auto_deps.py
+++ b/_auto_deps.py
@@ -10,7 +10,11 @@ install_requires=[
 
                   "zope.interface",
                   "Twisted >= 2.4.0",
-                  "foolscap[secure_connections] >= 0.4.1",
+
+                  # foolscap < 0.5.1 had a performance bug which spent
+                  # O(N**2) CPU for transferring large mutable files
+                  # of size N.
+                  "foolscap[secure_connections] >= 0.5.1",
                   "Nevow >= 0.6.0",
 
                   # pycryptopp v0.5.15 applied a patch from Wei Dai to fix an
-- 
2.45.2