Menu

Commit [r4136]  Maximize  Restore  History

Speed up pcolor_demo.py "benchmark" initialization by a factor of 2.

Cache the automatically created path codes by their length.
pcolor, quadmesh etc. create lots of polylines of the same length, and
there is no need to create a new identical codes array each time.
(Definite speed improvement, incredible memory improvement).
Change the default behavior to create open paths (which don't result
in a memory copy). Fix places that were relying on
automatically-created closed paths to create closed paths themselves
(and thus avoiding a copy).

mdboom 2007-11-06

changed /branches/transforms/lib/matplotlib/axes.py
changed /branches/transforms/lib/matplotlib/collections.py
changed /branches/transforms/lib/matplotlib/contour.py
changed /branches/transforms/lib/matplotlib/lines.py
changed /branches/transforms/lib/matplotlib/patches.py
changed /branches/transforms/lib/matplotlib/path.py
/branches/transforms/lib/matplotlib/axes.py Diff Switch to side-by-side view
Loading...
/branches/transforms/lib/matplotlib/collections.py Diff Switch to side-by-side view
Loading...
/branches/transforms/lib/matplotlib/contour.py Diff Switch to side-by-side view
Loading...
/branches/transforms/lib/matplotlib/lines.py Diff Switch to side-by-side view
Loading...
/branches/transforms/lib/matplotlib/patches.py Diff Switch to side-by-side view
Loading...
/branches/transforms/lib/matplotlib/path.py Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.