When it comes to backtesting, most of my models wouldn't benefit much from using R-like vectorization, so I keep everything in Java as it's what I know best. No complaints. However, the one model I have that would benefit greatly from vectorized environment is due for some tweaking. There are a lot of calculations that require many loops (e.g. 500 period maximum, averages, etc.) on each successive tick/bar. The completion time is brutal.
Can I stay within Java but do better than simply running loops for this sort of thing? My (limited) understanding of vector operations in R is that the loops are ultimately done in C but everything being pre-compiled significantly speeds up processing time. Perhaps my java code already performs just as efficiently, but I highly doubt it. Are there Java libraries that can be used here? Just curious about my options before I resort to generating signals in Excel for this one.
Appreciate any input.
Can I stay within Java but do better than simply running loops for this sort of thing? My (limited) understanding of vector operations in R is that the loops are ultimately done in C but everything being pre-compiled significantly speeds up processing time. Perhaps my java code already performs just as efficiently, but I highly doubt it. Are there Java libraries that can be used here? Just curious about my options before I resort to generating signals in Excel for this one.
Appreciate any input.