forked from MTSR/mapserver
profiler
This commit is contained in:
parent
5547cdec0f
commit
7694ebbd41
4
Makefile
4
Makefile
@ -10,3 +10,7 @@ $(STATIC_VFS):
|
||||
|
||||
build: $(STATIC_VFS)
|
||||
go build
|
||||
|
||||
profile:
|
||||
go test -cpuprofile=cprof ./tilerenderer
|
||||
go tool pprof --text cprof
|
||||
|
@ -130,6 +130,7 @@ func (db *Sqlite3Accessor) CountBlocks(pos1 coords.MapBlockCoords, pos2 coords.M
|
||||
|
||||
if len(poslist) > 999 {
|
||||
//https://stackoverflow.com/questions/7106016/too-many-sql-variables-error-in-django-witih-sqlite3
|
||||
//TODO: return before nested for loops
|
||||
return -1, nil
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ func TestTileRender(t *testing.T) {
|
||||
panic("no renderer")
|
||||
}
|
||||
|
||||
coord := coords.NewTileCoords(0,0,11,0)
|
||||
coord := coords.NewTileCoords(0,0,12,0)
|
||||
|
||||
data, err := tr.Render(coord)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user