'How to increase osmnx load graphml speed time

I am running New York road network analysis that involves loading a saved network GraphML file to get nearest nodes using osmnx.

The graphML (2.2 GB) takes over 8 hours to load. Does anyone know how I can speed up loading this file!? I am using python but open to learning something different.

Please help!!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source