Live data from Hacker News

I am a fast webpage

varvy.com

101–110 of 292 posts

Re: I am a fast webpage

#101

Earlier quoted context omitted.

For free? GAE doesn't charge for their object store nor their CDN service?

There is a free tier. It looks like it's free up to 1GB per day [1]. On my home account I've only used it for demo projects that are scarcely used, but it's fine for that. [1] https://cloud.google.com/appengine/docs/quotas

Does it 'stop' if you reach the quota or do you get a bill?

Re: I am a fast webpage

#104
For speed optimization it's really important to always fine-tune for you particular use case and apply some common sense. For instance, inlining everything as suggested here is faster only if you expect visitors to open just that one page and bounce away, so browser caching is not helpful. Consequently, it's a very good tip for e.g. landing pages, but it makes no sense at all to serve pages that way to your logged-in users.

Re: I am a fast webpage

#107
post #31

Is this image inlining thing something new? Am I reading it correctly that the images are encoded in base64 and delivered as html? Surely this is a bad idea... no?

base64 encoding increases the size of the file. For that image I would prefer to use inline SVG...

Indeed, this particular image is 3.5k of PNG, I'm certain it could easily be well under 1k as SVG.

Re: I am a fast webpage

#108
I've always wanted to play with putting /var/www into a ramdisk for PHP/html stuff. Would be much faster loading since it's all just text in the end of the day. Completely cut out the bottleneck of SSd/HDD

Re: I am a fast webpage

#109
I think it feels fast because it loads at once, but I'm actually not getting very impressive results programmatically if you measure how long the entire TCP transaction takes (which is what I consider page loading):

    # Both DNS records are cached before request
    >>> print requests.get('https://varvy.com/pagespeed/wicked-fast.html').elapsed.microseconds
    226515
    >>> print requests.get('http://www.google.com').elapsed.microseconds
    92027
Even google.com (92 ms) is about 250% faster than OP (226 ms) to establish connection, read all of the data, and close.

Re: I am a fast webpage

#110

> "I am not on a shared host, I am hosted on a VPS" Hate to break it to you, but your virtual private server (VPS) is likely sharing a bare-metal server with other VPS. ;-) Also, you can look into content delivery networks (aka CDN), which will most likely deliver this page faster to clients than your VPS especially when you consider your VPS is in Dallas and CDN's have nodes located around the world.

I think he is contrasting VPS service to shared hosting services like Go Daddy or one of the many cPanel providers. Unless a VPS is using OpenVZ, the box isn't over provisioned. A cPanel host is usually very over provisioned. 500 customers per server wss not uncommon 10 years ago.
Post reply on HN