4 ms·
But the current version is just an imaged coded on the fly and compressed on the fly.. It's burning CPU for no real reason. If you want flexibility for future
by kator 12y ago
But the current version is just an imaged coded on the fly and compressed on the fly.. It's burning CPU for no real reason.
If you want flexibility for future you can use a CDN path that includes options you want and later could switch to code the makes the requested image and caches result, returning the cached result.
I imagine the concept is to code the service for fun but I have to wonder to myself when something like this is shared but no concept of scale is considered. I know premature optimization is the root of all evil but isn't building a service to serve a static image basically premature optimization that "maybe some day I'll add more dynamic features".. :-)
- fka 12y agoGitHub already caches into a CDN, so it just takes once.