What is the overhead of calling ArrayGetAsSeries and ArraySetAsSeries

 

I have seen code like:


//--- save as_series flags
   bool as_series_price=ArrayGetAsSeries(price);
   bool as_series_buffer=ArrayGetAsSeries(buffer);

   ArraySetAsSeries(price,false);
   ArraySetAsSeries(buffer,false);
//---

// ..............................................

//--- restore as_series flags
   ArraySetAsSeries(price,as_series_price);
   ArraySetAsSeries(buffer,as_series_buffer);
//---


What is the overhead associated with saving and restoring these flags each time an indicator is computed? 

 
Don't guess, measure. Likely trivial and unnecessary.