Skip to content
Prev 7337 / 15274 Next

Performance comparison xts v. zoo

On Wed, Jan 19, 2011 at 8:32 AM, Dirk Eddelbuettel <edd at debian.org> wrote:
That is not truly an example.

A true example would be that xts has C code for merge whereas zoo has
R code.  Thus merges and functionality depending on merges could be
expected to be faster in xts.

On the other hand, comparing time operations is not a good example.
Parsing times are not a part of zoo nor are time operations in
general.  zoo defines an API that allows it to use any time class that
supports certain time/date methods (and all popular ones and most
lesser known ones do as do many classes that are not ordinarily
thought of as time classes) whereas xts hard codes these so the
"example" is really comparing particular time class methods, not part
of zoo, with hard coded functionality in xts.   Relative speeds would
depend on the particular time class and its implementation.

The one implication for speed is that if a new faster time class comes
along then zoo could likely use it without modifying zoo whereas xts
would have to be modified to handle it.