[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #10139] interpreter: static instead of dyn
From: |
Petter Tomner |
Subject: |
[Octave-patch-tracker] [patch #10139] interpreter: static instead of dynamic casts for speed |
Date: |
Wed, 30 Mar 2022 17:29:27 -0400 (EDT) |
Follow-up Comment #2, patch #10139 (project octave):
Ye maybe it could flip from default dynamic to static in a major release or
something. dynamic_cast is surprisingly slow.
I don't think lib users depend on the bad_cast exception, since typeid need to
be messed up somehow for the octave_value object to make the lookup get the
wrong functions (I think).
I look into your feedback at some point.
I've done a lot of similar speedup patches as a byproduct of a try to make a
stack based interpreter for Octave. Some might be interesting to look at but I
believe a lot breaks lib ABI.
https://savannah.gnu.org/patch/?10167
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/patch/?10139>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/