~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

Using Key_New() rather than Key(PyTuple_New()) gets us to 720ms.
It takes some gymnastics to get it to work, because we have to export the
symbol and then find the .lib file to use it from the pyrex code.
setup.py syntax doesn't seem to support that cleanly :(
Going further, we'll have to update _flatten_node to support Key nodes,
since right now it has some explicit 'is tuple' checks that fail.

Show diffs side-by-side

added added

removed removed

Lines of Context:
265
265
 
266
266
add_pyrex_extension('bzrlib._annotator_pyx')
267
267
add_pyrex_extension('bzrlib._bencode_pyx')
268
 
add_pyrex_extension('bzrlib._btree_serializer_pyx')
269
268
add_pyrex_extension('bzrlib._chunks_to_lines_pyx')
270
269
add_pyrex_extension('bzrlib._groupcompress_pyx',
271
270
                    extra_source=['bzrlib/diff-delta.c'])
297
296
                             ['bzrlib/_patiencediff_c.c']))
298
297
ext_modules.append(Extension('bzrlib._keys_type_c',
299
298
                             ['bzrlib/_keys_type_c.c']))
 
299
add_pyrex_extension('bzrlib._btree_serializer_pyx',
 
300
                    libraries=['_keys_type_c'])
 
301
ext_modules[-1].library_dirs.append('build/temp.win32-2.6/Release/bzrlib')
300
302
 
301
303
 
302
304
if unavailable_files: