Repository navigation
Caching and Speed
SORA edited this page Nov 26, 2026
·
1 revision
Caching is on by default, nothing to set up.
| What | Where | How long |
|---|---|---|
| splash art and icons | disk | until the folder hits 15 MB, least recently used go first |
| finished cards | memory | last 8 |
| enka player data | memory | enka's own ttl |
| game data tables | disk | until a patch needs new ones |
Rough numbers from one run of examples/caching.py: a cached card came back in about 3 ms, the same
operator in another template in about 1 s, and with the cache off a card took 0.4 to 0.5 s.
cards = akef_cards.Cards(cache_mb=100, kept_cards=32) # more room
cards = akef_cards.Cards(cache=False) # always fresh
cards = akef_cards.Cards(max_renders=3) # draw max 3 at once
cards.clear_cache()- the disk cache lives in
%LOCALAPPDATA%\akef\imagesor~/.cache/akef/images,AKEF_CARDS_CACHEmoves it - cards that need the same image at the same time share one download
- custom art and animated cards are never cached
- after a game patch the tables refresh by themselves, or call
await cards.update()
akef-cards · MIT · not affiliated with Hypergryph or Gryphline
akef-cards
- 🏠 Home
- 🚀 Getting Started
- 🖼️ Card Gallery
- 🎞️ Animated Cards
- 🎨 Custom Art
- 🤖 Discord Bot
- ⚡ Caching and Speed
- ❓ FAQ