Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Q2 History function optimization

Hey Q and community!

I observed that the history function takes less time if it is always called with a constant bar count compared to a variable bar count.
If this is an optimization which happens in the back end, are there any other tricks in the Q code which are not apparent?

Thanks for your time.
AR