mirror of
https://github.com/cfpwastaken/planetiler-openmaptiles.git
synced 2026-02-04 12:31:10 +00:00
Offload multipolygon storage to disk (reduce memory usage by 10-15gb) (#141)
This commit is contained in:
@@ -195,8 +195,8 @@ public class BasemapProfile extends ForwardingProfile {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long estimateRamRequired(long osmFileSize) {
|
public long estimateRamRequired(long osmFileSize) {
|
||||||
// 30gb for a 60gb OSM file is generally safe, although less might be OK too
|
// 20gb for a 67gb OSM file is safe, although less might be OK too
|
||||||
return osmFileSize / 2;
|
return osmFileSize * 20 / 67;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user