Skip to content

Commit

Permalink
Merge pull request #214 from tilezen/reduce-queue-buffer-size
Browse files Browse the repository at this point in the history
Reduce queue buffer size
  • Loading branch information
rmarianski authored Jun 9, 2017
2 parents 746217a + ae7af0d commit c760176
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tilequeue/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,8 @@ def tilequeue_process(cfg, peripherals):
assert n_simultaneous_query_sets > 0
# reduce queue size when we're rendering metatiles to try and avoid the
# geometry waiting to be processed from taking up all the RAM!
default_queue_buffer_size = max(1, 128 >> (2 * (cfg.metatile_size or 0)))
size_sqr = (cfg.metatile_size or 1)**2
default_queue_buffer_size = max(1, 16 / size_sqr)
sql_queue_buffer_size = cfg.sql_queue_buffer_size or \
default_queue_buffer_size
proc_queue_buffer_size = cfg.proc_queue_buffer_size or \
Expand Down

0 comments on commit c760176

Please sign in to comment.