Giter VIP home page Giter VIP logo

Comments (9)

strk avatar strk commented on June 27, 2024

Forgot to mention: my tests were conducted with tilelive-mapnik 0.3.2 but I see that also master is affected

from tilelive-mapnik.

strk avatar strk commented on June 27, 2024

See also #14

from tilelive-mapnik.

springmeyer avatar springmeyer commented on June 27, 2024

happy to review a pull request that keeps existing functionality (used by TileMill) but extends the code to have options for more flexible uses.

from tilelive-mapnik.

springmeyer avatar springmeyer commented on June 27, 2024

note: if/as you are working on this - there are a few other locking cache tickets you may or may not be interested in.

from tilelive-mapnik.

strk avatar strk commented on June 27, 2024

There was a pull request from @tokumine which was about having the policy specified by a parameter passed to LockingCache, but I'm afraid the same parameter wasn't accessible from the outside.

from tilelive-mapnik.

strk avatar strk commented on June 27, 2024

I think I'm done with this task, anyway if you add a "LockingCache" label for the issues it'll be easier to look at them next time I'm around :)

from tilelive-mapnik.

kkaefer avatar kkaefer commented on June 27, 2024

The LockingCache removes the item it triggers immediately (and doesn't wait until the timer expires/deletes the timer) because when we wrote it, tilelive-mapnik was mainly used for generating MBTiles files. Since every tile is requested exactly once there is no need to keep them in the cache until they expire. This expectation doesn't hold of course in a setup where you request tiles at random.

from tilelive-mapnik.

strk avatar strk commented on June 27, 2024

So will @rcoup commit be merged or should it be enhanced to expose a parameter (as per #14) ?

from tilelive-mapnik.

springmeyer avatar springmeyer commented on June 27, 2024

see #57 which is viable and will supersede this.

from tilelive-mapnik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.