Commit Graph

443 Commits

Author SHA1 Message Date
Sascha L. Teichmann
bae7e7c3e6 Made size of hashes LRU cache a parameter set by the webmapper. 2016-05-10 21:02:16 +02:00
Sascha L. Teichmann
7cbe2e516c Revert enabling websockets by default. Slipped in by accident. 2016-05-10 20:53:58 +02:00
Sascha L. Teichmann
69ee5af388 Implemented a simple LRU cache with max 256 entries for base tile hasing. TODO: Improve test. 2016-05-10 18:57:14 +02:00
Sascha L. Teichmann
5d1be98ae5 Cosmetics. 2016-05-08 23:27:11 +02:00
Sascha L. Teichmann
4c24a01607 Use empty structs instead of bools in changes. 2016-05-08 23:20:51 +02:00
Sascha L. Teichmann
da309c73d8 Removed obsolete comment. 2016-05-08 23:12:29 +02:00
Sascha L. Teichmann
496a60aa29 Simplified mask embedding in parent calculation of pyramid tiles. 2016-05-08 23:07:19 +02:00
Sascha L. Teichmann
da2a6a82d4 Simplified tiles update processing and forwarding. 2016-05-08 22:30:00 +02:00
Sascha L. Teichmann
b59f849d73 Make go vet happy. 2016-05-08 18:03:13 +02:00
Sascha L. Teichmann
fad16a58e8 Write tile coord if it is unchanged not the file path to the base tile. 2016-05-08 17:43:48 +02:00
Sascha L. Teichmann
398c52f8a5 Removed unnecessary general code. 2016-05-08 17:33:51 +02:00
Sascha L. Teichmann
792aae99d7 Simplified tile hash. 2016-05-08 17:22:04 +02:00
Sascha L. Teichmann
0900bd16ce Finished logic to supress pyramid regeneration in mtwebmapper. Untested. 2016-05-08 15:38:50 +02:00
Sascha L. Teichmann
4bed73d9e3 Prepare tiles updater in webmapper to have unupdated base tiles. 2016-05-08 15:13:40 +02:00
Sascha L. Teichmann
5ee3731a27 Started with experimental hashing of base tiles to avoid redundant write operations and pyramid updates. 2016-05-08 12:33:17 +02:00
Sascha L. Teichmann
9f1735eb29 mtredisalize: Renamed parser.go to redisparser.go 2016-04-25 11:46:59 +02:00
Sascha L. Teichmann
72bd5ec77a mtredisalize: Removed a useless level of abstraction in redis parser. 2016-04-25 11:43:50 +02:00
Sascha L. Teichmann
14ae6d3873 s/SqliteBackend/SQLiteBackend/ s/SqliteSession/SQLiteSession/ in mtredisalize. 2016-04-24 20:54:05 +02:00
Sascha L. Teichmann
d21fa6c027 Be more explicit about data flow directions of the channels in mtredisalize. 2016-04-24 20:47:55 +02:00
Sascha L. Teichmann
4dc43881c6 Added a few more comments to mtredisalize and unexport a few symbols. 2016-04-24 19:41:15 +02:00
Sascha L. Teichmann
7ac3c67e63 Made mtdbconverter pass golint by adding the missing comments. 2016-04-24 18:37:08 +02:00
Sascha L. Teichmann
67a16e2d3e Unexport render internal methods. 2016-04-24 13:31:13 +02:00
Sascha L. Teichmann
6ab45d13c0 Recommend Go 1.6.2 instead 1.6.1 2016-04-24 13:02:52 +02:00
Sascha L. Teichmann
8c459d05de Removed dead code. 2016-04-24 12:55:17 +02:00
Sascha L. Teichmann
ea57c7c35f Silence all warnings of golint not related to missing comments. 2016-04-24 12:41:58 +02:00
Sascha L. Teichmann
cf14aed031 Merged 2016-04-24 11:21:07 +02:00
Sascha L. Teichmann
607b4de9ec Dedup code. 2016-04-23 21:09:23 +02:00
Sascha L. Teichmann
0db9b519a6 Implement fetaure request issue #17
mtseeder and mtwebmapper got an option to set the background color where no nodes are generated, yet.
2016-04-23 16:45:33 +02:00
Sascha L. Teichmann
0030f7bc02 Merged. 2016-04-13 11:12:07 +02:00
Sascha L. Teichmann
3c76ef6d1c Updated compile to Go 1.6.1. 2016-04-13 11:11:29 +02:00
Sascha L. Teichmann
b5f531b0ba Before Go 1.7 there is an extra offset needed to decode blocks correctly
after the embedded compressed data. In post 1.7 this bug was fixed.
We use build tags here to support both cases.
2016-04-08 23:40:36 +02:00
Sascha L. Teichmann
955dfdf4bb Update recommended Go version to 1.6. 2016-04-06 16:51:51 +02:00
Sascha L. Teichmann
0f01065fdf Merged. 2016-04-06 11:45:59 +02:00
Sascha L. Teichmann
58a44c2d40 Be more careful with host IPs which call /update. They are potentially IPv6. Fixes Issue #16. 2016-04-06 11:44:51 +02:00
Sascha L. Teichmann
7bb5e8d00d Merged. 2016-01-24 14:32:18 +01:00
Sascha L. Teichmann
4522708ddf Updates #15 Prevent a potential file handle leak in sending update notifications via POST to mtwebmapper. 2016-01-24 14:31:15 +01:00
Sascha L. Teichmann
34fa4564f2 Update compiler to 1.5.3. 2016-01-14 10:10:18 +01:00
Sascha L. Teichmann
5730da652b Added tag 0.6 for changeset 0c0f125037d1 2015-12-26 18:19:13 +01:00
Sascha L. Teichmann
384c11659e version 0.6 2015-12-26 18:19:03 +01:00
Sascha L. Teichmann
36acde77c4 Relax the warnings about the none interleaved backend formats. 2015-12-26 18:14:20 +01:00
Sascha L. Teichmann
0158f97dcd Mentioned Go 1.5.2 in compile how to. 2015-12-26 18:06:15 +01:00
Sascha L. Teichmann
82f2efc25e Merge new-scaler branch. 2015-12-26 17:54:31 +01:00
Sascha L. Teichmann
f658d12641 Use github.com/bamiaux/rez instead of github.com/nfnt/resize for resampling the pyramid tiles. It is much faster but needs some testing. 2015-12-25 22:07:54 +01:00
Sascha L. Teichmann
6ae5936de9 Be more verbose if image decoding failed. 2015-08-24 10:58:46 +02:00
Sascha L. Teichmann
08031f1dcd Do more boundary checks in block decoding. 2015-08-24 10:45:28 +02:00
Sascha L. Teichmann
011cd0e4f4 Be more defensive in decoding node id table in blocks. 2015-08-23 22:48:54 +02:00
Sascha L. Teichmann
dc2845abb1 Made pyramid seeding more spammy (user request). TODO: percentage output would be nicer. 2015-08-10 17:43:52 +02:00
Sascha L. Teichmann
c4c35dc10d Use a sync.Pool to recycle the zlib readers. Speeds up the decoding of database blocks significantly. 2015-08-08 16:01:23 +02:00
Sascha L. Teichmann
ab1a86384b Reset zlib reader instead of re-opening it before reading meta data from block. Speeds up decoding of blocks significantly. Using a sync.Pool will seed it up even more. 2015-08-08 13:00:12 +02:00
Sascha L. Teichmann
076ca9fad6 Added hard newline in setup. 2015-08-05 23:10:33 +02:00