Skip to content

Pandana network initiation slow for large network #174

@wendy-ngan

Description

@wendy-ngan

I am initializing a pandana network for Canada roads network. My hdf5 file is just under 200mb and the number of edges is around 2.2 million. Been running the code below for almost 5 hrs and it's still on going.

I am quite new to this domain and am wondering if anyone can give me suggestions on speeding up the computation.
Would it be possible to implement multiprocessing here? Or should I break the roads network into something smaller like census divisions or provinces and somehow merge them back together, would that make it run faster?

Thanks in advance !

Environment

  • Windows 10
  • Operating system: 64-bit operating system, x64-based processor
  • Processor: Intel(R) Core(TM) i5-1035G4 CPU @ 1.10GHz 1.50 GHz
  • 16GB RAM, 4 CPU core
  • Python version: 3.9.7
  • Pandana version: 0.6.1
network = pdna.Network(nodes.x, nodes.y, edges['from'], edges['to'], edges[['dist']], twoway=False)
network.precompute(distance + 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions