Commit Graph

17 Commits

Author SHA1 Message Date
Sascha L. Teichmann 65762936a4 fix error strings 2024-01-06 10:17:25 +01:00
Sascha L. Teichmann c507663826 Use a more general db client factory approach. 2022-03-01 14:47:14 +01:00
Sascha L. Teichmann 2cba483d32 redis client: Issue fewer write sys calls by fill hspatial request into a temp buffer first and write it in one go. 2017-03-06 11:44:06 +01:00
Sascha L. Teichmann 91959685f5 Re-worked memory management of blocks loaded from redis client to avoid
unnecessary copying them around.
2017-03-03 23:00:29 +01:00
Sascha L. Teichmann 427ec305fc One more use of the scratch of redis client. 2017-03-03 16:03:08 +01:00
Sascha L. Teichmann 41187af7db Replaced one sync.Pool with a scratch byte arrary in redis client. 2017-03-02 10:57:03 +01:00
Sascha L. Teichmann 7fca02e45f Unified pooling for redis client in hspatial requests. 2017-02-28 18:50:45 +01:00
Sascha L. Teichmann 5def145564 The block data from the redis server in of the HSPATIAL requests is now recycled with a sync.Pool. Removes some pressure from the gc. 2017-02-28 00:33:59 +01:00
Sascha L. Teichmann 3e3413566b Only do expensive area coverage calculation if there where blocks loaded from database.
If there are not, nothing changed, so nothing to recalculate.
Takes a good deal from the clock.
2017-02-26 12:57:38 +01:00
Sascha L. Teichmann 7f78feb9bd Replaced expensive fmt.Sscanf call in redis client with strconv.ParseInt. 2017-02-25 19:29:27 +01:00
Sascha L. Teichmann 228bd9026b Added a recyling pool for bulk strings written in redis client to help performance. 2017-02-25 17:00:17 +01:00
Sascha L. Teichmann b6bfe468b7 For symmetry inline readline function in redis client. 2017-02-24 21:23:04 +01:00
Sascha L. Teichmann 744208ba00 Removed superfluous error checking in redis client. 2017-02-24 19:54:19 +01:00
Sascha L. Teichmann 3c2ab551f1 Opitimized writing redis hspatial queries a bit. 2017-02-24 19:49:08 +01:00
Sascha L. Teichmann 7f82d482f5 More header updates. 2015-07-26 16:44:51 +02:00
Sascha L. Teichmann b66c7fdff3 Redis client: Pulled micro optimisation over from server when constructing bulk strings. 2015-06-28 14:41:07 +02:00
Sascha L. Teichmann 560afae6c4 Moved redis client from tilemapper to common. 2014-09-13 19:18:12 +02:00