Commit 53ac7830 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

docs/speed_python: Add article.

parent 2c883c5a
...@@ -99,7 +99,7 @@ of slice it points too. ...@@ -99,7 +99,7 @@ of slice it points too.
A ``memoryview`` can only be applied to objects supporting the buffer protocol - this A ``memoryview`` can only be applied to objects supporting the buffer protocol - this
includes arrays but not lists. Small caveat is that while memoryview object is live, includes arrays but not lists. Small caveat is that while memoryview object is live,
it also keeps alive the original buffer object. So, memoryviews isn't universal it also keeps alive the original buffer object. So, a memoryview isn't a universal
panacea. For instance, in the example above, if you are done with 10K buffer and panacea. For instance, in the example above, if you are done with 10K buffer and
just need those bytes 30:2000 from it, it may be better to make a slice, and let just need those bytes 30:2000 from it, it may be better to make a slice, and let
the 10K buffer go (be ready for garbage collection), instead of making a the 10K buffer go (be ready for garbage collection), instead of making a
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment