Fiona关于性能的描述之一
Fiona | 翻译 |
---|---|
Fiona’s performance is relatively more slow if you only need access to a single record field – and of course if you just want to reproject or filter data files, nothing beats the ogr2ogr program - but Fiona’s performance is much better than OGR’s Python bindings if you want all fields and coordinates of a record | 如果只是存取单条记录字段,Fiona的性能相对较慢 – 如果是要重投影或过滤数据,没什么比ogr2ogr更快了。 但是如果要存取记录的所有字段和坐标,Fiona的性能要优于OGR的Python绑定库 |
Depending on the driver, a transaction can be a very costly operation. Since write() is just a thin convenience wrapper that calls writerecords() with a single record, you may experience significant performance issue if you write lots of features one by one using this method. Consider preparing your data first and then writing it in a single call to writerecords() | 取决于驱动,一个事务可能很耗时。因为 write() 只是使用单条记录调用 writerecords() 的一个简略外包。如果用该方法【write()】一条条写入大量要素,就会遇到很大的性能问题。因此最好先把数据准备好,然后调用writerecords()一次写入。 |