Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

run with psyco acceleration if the psyco module is available on the s…

…ystem

  -- improves maximum throughput by about 6%
  • Loading branch information...
commit 54d5415a43043062ae6195b828707692b9231aab 1 parent 8cdd1fb
@dound authored
Showing with 13 additions and 0 deletions.
  1. +6 −0 VNS.py
  2. +7 −0 web/vnswww/models.py
View
6 VNS.py
@@ -1,5 +1,11 @@
"""The VNS simulator."""
+try:
+ import psyco
+ psyco.full()
+except ImportError:
+ pass
+
import errno
import hashlib
import logging, logging.config
View
7 web/vnswww/models.py
@@ -1,3 +1,10 @@
+try:
+ from django.db import models as django_models
+ import psyco
+ psyco.cannotcompile(django_models.sql.query.Query.clone)
+except ImportError:
+ pass
+
import datetime
import hashlib
import math
Please sign in to comment.
Something went wrong with that request. Please try again.