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
{{ message }}
Repository navigation
research: alternative to string for decimal conversion #392
This is worth exploring IMO given the risk vs. reward tradeoff; though, we should check it out to see if precision loss from converting through double to decimal is significant compared to current string based conversion. See prior discussion on Precisions v. Performance of decimal vs double.
The faster conversion path this issue was researching shipped in #439 ("perf: Use 4x faster decimal conversion method across all indicators"), merged 2026-05-13. It preserved to_pydecimal_via_double for the ~4x gain and updated every indicator getter to use it.
The blocker recorded here — "few tests fail due to precision problem" — is resolved: #439 landed with 583 tests passing, and #431 added dedicated performance tests for CsObject conversion to guard the path.
Activity
DaveSkender commentedon Aug 11, 2024
This is worth exploring IMO given the risk vs. reward tradeoff; though, we should check it out to see if precision loss from converting through
doubletodecimalis significant compared to currentstringbased conversion. See prior discussion on Precisions v. Performance ofdecimalvsdouble.DaveSkender commentedon Aug 22, 2026
Answered — closing.
The faster conversion path this issue was researching shipped in #439 ("perf: Use 4x faster decimal conversion method across all indicators"), merged 2026-05-13. It preserved
to_pydecimal_via_doublefor the ~4x gain and updated every indicator getter to use it.The blocker recorded here — "few tests fail due to precision problem" — is resolved: #439 landed with 583 tests passing, and #431 added dedicated performance tests for
CsObjectconversion to guard the path.