[NumPy-Tickets] [NumPy] #1233: Deserialized arrays with base mutate strings
NumPy Trac
numpy-tickets@scipy....
Sat Apr 2 16:51:43 CDT 2011
#1233: Deserialized arrays with base mutate strings
-------------------------+--------------------------------------------------
Reporter: hniksic | Owner: mwiebe
Type: defect | Status: closed
Priority: highest | Milestone: 1.6.0
Component: numpy.core | Version: devel
Resolution: fixed | Keywords:
-------------------------+--------------------------------------------------
Changes (by pv):
* status: new => closed
* resolution: => fixed
Comment:
Addressed in commit:7b39b9e5 (same as #1708)
This can be fixed without giving up essentially any speed advantage by
copying data if the string happens to be interned. Interned strings are
typically always short, so for long strings no copy is made.
Yes, this is an "evil" approach that uses some knowledge on how CPython
works. However, a speed advantage here is a bit questionable.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1233#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list