Giter Club home page Giter Club logo

hypixel4j's Introduction

        _                            _             _ 
   __ _( )_ __ ___   ___  _ __ _ __ (_)_ __   __ _| |
  / _` |/| '_ ` _ \ / _ \| '__| '_ \| | '_ \ / _` | | how are you?
 | (_| | | | | | | | (_) | |  | | | | | | | | (_| |_| i'm nullicorn o/
  \__, | |_| |_| |_|\___/|_|  |_| |_|_|_| |_|\__, (_)
  |___/                                      |___/   

Hi! I dabble in Kotlin, Java and Dart, mostly for projects related to Minecraft...

  • NBT Iconย  ย Nedit - a lightweight NBT library for Java
  • ๐Ÿ“กย  ย ms-to-mca - authenticate with Minecraft services via Microsoft access token
  • ๐Ÿ˜ฝย  ย mew-tea-f8 - I/O for modified-utf-8 in Kotlin (jvm + js + native)
  • ๐ŸŽ๏ธย  ย MineKartz - a sample Bukkit plugin that implements the racecars from hypixel.net's minigame Turbo Kart Racers
  • โœ‰๏ธย  ย PublicAPI - official Java client for hypixel.net's API (not my project, but has several contributions of mine)

Attributions ๐Ÿ’ž

  • ASCII header created using this lovely generator by @patorjk

  • "Nedit" icon cropped from Minecraft Wiki's Nbtsheet.png, created by Yusuke Kamiyamane

hypixel4j's People

Contributors

thenullicorn avatar

Watchers

 avatar

hypixel4j's Issues

Add dynamic cache lifetimes

Rather than having fixed values for cache times, allow them to be set using a function. This would allow for a higher dependency on the cache when we're close to reaching our limit cache data for longer when we're nearer to 120 queries per minute).

I've found that the following function outputs pretty reasonable cache lengths:

t = 3b * ((q / l^0.8) ^ 1.8) + b

(Graph)

Where...

  • t = Time to cache an object for
  • b = Base amount of time (in minutes) used to cache the object's type (ie 12 minutes for PLAYER objects)
  • q = # of uncached queries in last minute
  • l = Maximum allowed queries per minute

This function could be used to cache more dynamic types, and then the more constant types could use constant cache lifetimes (e.g. player names -> uuids, leaderboards, resources, etc)

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.