From 0d59ad9c95da5b05094b0f9448431b9299c22104 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Tue, 30 Jun 2015 08:09:54 -1000 Subject: [PATCH] Note negative result with unordered_map --- src/mceditlib/relight/with_cython.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mceditlib/relight/with_cython.pyx b/src/mceditlib/relight/with_cython.pyx index ce9c2b3..9add098 100644 --- a/src/mceditlib/relight/with_cython.pyx +++ b/src/mceditlib/relight/with_cython.pyx @@ -3,10 +3,10 @@ """ with_cython """ - from __future__ import absolute_import, division, print_function, unicode_literals import logging +# unordered_map was twice as slow, at least with the MSVC 2008 from Python C++ Toolkit from libcpp.map cimport map from libcpp.set cimport set from libcpp.pair cimport pair @@ -26,7 +26,7 @@ cdef struct RelightSection: unsigned char[:,:,:] BlockLight unsigned char[:,:,:] SkyLight # To keep the chunk "alive" while we edit its section arrays, we INCREF it and keep it here - # then DECREF it when the RelightCtxd dies and when it gets decached. + # then DECREF it when the RelightCtx dies and when it gets decached. # It must be a with manual refcounting because Cython won't let me store an # in a struct. void * chunk