Below you will find two code snippets that improve the performance of the ARFIMA statistical code. For any inquiries or further information, please do not hesitate to contact me.