AGM is more performant compared to Taylor series for large precision. Implement AGM algorithm for the logarithm. Test the performance improvement.