mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
15085a9f95
Every single call to base64decode allocates a mapping table for all base64 characters. This is quite wasteful, as the map is in fact static. We could use a static variable here, but that would have unpleasant consequences if we ever encounter input with non-valid base64 characters (which implicitly modifies the map). The number of character ranges for base64 is quite low (3, plus 4 exceptions), thus we can simply check that explicitly in code instead of using a dynamic hash table. |
||
---|---|---|
.. | ||
app.md | ||
auth.md | ||
blueprints.md | ||
compression.md | ||
json.md | ||
logging.md | ||
middleware.md | ||
multipart.md | ||
proxies.md | ||
query-string.md | ||
routes.md | ||
ssl.md | ||
static.md | ||
syste.md | ||
templating.md | ||
testing.md | ||
websockets.md |