mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-07-03 08:30:45 +02:00
Some little experiment with a coverage index to speed up spatial queries if backend has no Z order support.
This commit is contained in:
@ -48,20 +48,6 @@ func (yo *YOrder) Reset() {
|
||||
yo.blocks = yo.blocks[0:0]
|
||||
}
|
||||
|
||||
func max(a, b int) int {
|
||||
if a > b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func max32(a, b int32) int32 {
|
||||
if a > b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func copyData(data []byte) []byte {
|
||||
l := len(data)
|
||||
ndata := make([]byte, l, max(l, 8*1024))
|
||||
|
Reference in New Issue
Block a user