Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce Allocations in YieldCurve - Add Iteration Wrapper to get rate and time? #34

Open
alecloudenback opened this issue Jul 31, 2022 · 1 comment

Comments

@alecloudenback
Copy link
Member

alecloudenback commented Jul 31, 2022

E.g.:

WithTime(ScenarioGenerator(...))

Would return a vector of tuples with rate and time. This would make, e.g. __fwd_times able to not allocate so much.

Composing iterators alternative: Transducers doesn't retain/compute the collected size in advance, so that didn't work. Try just base iterators?

@alecloudenback alecloudenback changed the title Add Iteration Wrapper to get rate and time Reduce Allocations in YieldCurve - Add Iteration Wrapper to get rate and time? Aug 2, 2022
@alecloudenback
Copy link
Member Author

see #37 for some progress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant