You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using NMatrix for competitive programming for a while now and I have found NMatrix to be slower than Matrix for most of my programs. For example methods such as [], []= which are frequently used in my programs are slower in NMatrix.
Here's a benchmark I ran and following are the results:
For #[]=, I notice that we're spending a lot of time in nm::dense_storage::set(), allocating and freeing stuff. I'm not going to look into this any more at the moment, just noting this for future reference.
I'm using NMatrix for competitive programming for a while now and I have found NMatrix to be slower than Matrix for most of my programs. For example methods such as
[]
,[]=
which are frequently used in my programs are slower in NMatrix.Here's a benchmark I ran and following are the results:
The text was updated successfully, but these errors were encountered: