strawlab / pyopy

Python bindings to interesting matlab libraries for data analysis
Other
86 stars 16 forks source link

Use pymatbridge.Octave to make faster the call roundtrip #1

Closed sdvillal closed 9 years ago

sdvillal commented 9 years ago

Oct2Py is great but has too much magic that makes things slow. pymatbridge call dispatch cost is much lower. pymatbridge has experimental support for Octave that might be worth to explore (in fact, probably just the same engine would work for both, which could make things neat).

sdvillal commented 9 years ago

Actually, under the current implementation (at the time of writing) function dispatch is not much faster using either oct2py or pymatbridge and both are way slower than dispatching functions in matlab. The solution should be to group multiple calls in one function dispatch by code generation + error handling in octave land.

sdvillal commented 9 years ago

This is now no problem (except that the messenger in pymatbridge is unreliable ATM). We use oct2py by default but switching to pymatbridge is now implemented and just a configuration issue.