python - Create PyString from c character array without copying -


I have a large buffer of stars (basically 12GB) with a C app.

I like the embedded Python interpreter without copying the wires to create a pistig object in C, is it possible?

I do not think that the root cause of the Python string objects is possible in the PyObject structure In other words, the Python string object is PyObject_HEAD followed by the bytes of the string. To keep PyObject_HEAD information around the existing bytes, you must have a cell in memory.


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -