A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-July/027055.html below:

[Python-Dev] pickling of large arrays

[Python-Dev] pickling of large arrays [Python-Dev] pickling of large arraysMartin v. Loewis martin@v.loewis.de
30 Jul 2002 00:46:03 +0200
"Ralf W. Grosse-Kunstleve" <rwgk@yahoo.com> writes:

> We are using Boost.Python to expose reference-counted C++ container
> types (similar to std::vector<>) to Python. E.g.:
> 
> from arraytbx import shared
> d = shared.double(1000000) # double array with a million elements
> c = shared.complex_double(100) # std::complex<double> array
> # and many more types, incl. several custom C++ types

I recommend to implement pickling differently, e.g. by returning a
byte string with the underlying memory representation. If producing a
duplicate is still not acceptable, I recommend to inherit from the
Pickler class.

Regards,
Martin



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4