From f274f8c971f2df3175797dab297a64b88c7c318b Mon Sep 17 00:00:00 2001 From: Kevin Brubeck Unhammer Date: Tue, 10 Jun 2008 12:35:05 +0200 Subject: [PATCH] some optimizations, inner is about 3 times faster now --- DMVCCM.html | 35 ++++++++++---- DMVCCM.org | 22 +++++++-- src/dmv.py | 153 ++++++++++++++++++++++++++++++++++++++++++------------------ src/dmv.pyc | Bin 16448 -> 17787 bytes 4 files changed, 153 insertions(+), 57 deletions(-) rewrite src/dmv.pyc (62%) diff --git a/DMVCCM.html b/DMVCCM.html index cb5d018..0ac0d9e 100755 --- a/DMVCCM.html +++ b/DMVCCM.html @@ -6,7 +6,7 @@ lang="en" xml:lang="en"> DMV/CCM – todo-list / progress - + @@ -37,8 +37,6 @@ lang="en" xml:lang="en">

DEADLINE: 2008-06-30 Mon
-But absolute, extended, really-quite-dead-now deadline: August -31…

-
+ +

(But absolute, extended, really-quite-dead-now deadline: August 31…) +

@@ -297,6 +296,11 @@ just a frequency count of the corpus…

7 [#C] Deferred

+

http://wiki.python.org/moin/PythonSpeed/PerformanceTips Eg., use +map/reduce/filter/[i for i in [i's]]/(i for i in [i's]) instead of +for-loops; use local variables for globals (global variables or or +functions), etc. +