My sinatra app has to parse a ~60MB XML-file. This file hardly ever changes: on a nightly cron job, It is overwritten with another one.
Are there tricks or ways to
You could try:
configure do @@nokogiri_object = parse_xml end
Then @@nokogiri_object will be available in your request methods. It's a class variable rather than an instance variable, but should do what you want.
@@nokogiri_object