Golang 编写的瓦片地图服务

栏目: Go · 发布时间: 7年前

内容简介:爬取程序:爬取地址:区域范围:
  • Go 编写的瓦片地图爬取工具( GogoroutinePython3asyncio 性能对比);

  • 瓦片存入 MongoDB ,为后期构建分布式文件存储准备;

  • Go 构建地图服务,并加入 Redis 缓存层。

Go goroutine VS Python3 asyncio

爬取程序: go run Crawk.go

  • 基准
系统 CPU RAM
Ubuntu 18.04.1 LTS Intel(R) Xeon(R) CPU E5-2643 v4 @ 3.40GHz 64GB
  • 爬取参数

爬取地址: http://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}

区域范围: 109.227°E ~ 117.182°E 20.196°N ~ 25.5°N

瓦片等级: 12

瓦片数量: 6164

  • 用时(单位 s
次数 goroutine asyncio
1 17.28094745 4.405204006
2 16.46757889 3.871793148
3 15.89158821 4.080148845
4 15.57217884 4.166357563
5 16.35038185 4.520677129
平均 16.31253505 4.208836138

以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Unreal Engine 4 Scripting with C++ Cookbook

Unreal Engine 4 Scripting with C++ Cookbook

Sherif, William、Stephen Whittle / 2016-10-24

Unreal Engine 4 (UE4) is a complete suite of game development tools made by game developers, for game developers. With more than 100 practical recipes, this book is a guide showcasing techniques to us......一起来看看 《Unreal Engine 4 Scripting with C++ Cookbook》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

URL 编码/解码
URL 编码/解码

URL 编码/解码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具