Better HN
topnewbestaskshowjobs
Log inSign up

lneves12

64 karma · joined Mar 14, 2020 (6y ago) · 10 submissions

Submissions

comment 2y ago · link · parent

ah I thought I was going crazy (I was sure this was working at some point). The compression just stopped working because of a cloudfront limitation eheh

`CloudFront compresses objects that are between 1,000 bytes and 10,000,000 bytes in size.` - since the file became bigger than 10mb, cloudfront stopped compressing it...

2.

How to stack multiple Git branches and rebase them like a pro(medium.com ↗)

1 points · by lneves12 · 2y ago · discuss

3.

We Designed and Built Our Free Shared Tier(singlestore.com ↗)

4 points · by lneves12 · 2y ago · discuss

comment 2y ago · link · parent

ah that's an embarrassing oversight! we reuse the same cdn configuration for multiple projects and for some reason the compression isn't properly configured for our portal-notebooks.singlestore.com entry point. It's funny that I reconfirmed that before publishing the blogpost, but mistakenly looked at the request headers and not the response headers (facepalm). We are fixing that now, thank you! This will be helpful for cases where you access the notebooks UI directly. For cases where you come from other page, it shouldn't make that much difference, since the iframe is already pre rendered.

comment 2y ago · link · parent

Thanks for the context, that makes a lot of sense. In our case since we have a more controlled and less generic environment we have a bit more flexibility/control in what we can do.

comment 2y ago · link · parent

Yeah, sorry should have made that more clear. This doesn’t really load anything, it’s just the entry point for our iframe. To try our notebooks you can create an account at portal.singlestore.com (we have a gallery of notebooks there)

comment 2y ago · link · parent

We are actually bundling everything inside one big main.js file, compared to jupyter-lab app that loads each extension from a different file using webpack federated modules. We did some benchmarking and it was actually faster than having one file per extension. There is definitely still some room for improvement here, but we have some other places we would like to optimize first, like, optimising the fetching of the notebooks content.

You can take a look at the notebooks entrypoint network request: https://portal-notebooks.singlestore.com/

8.

How we made Jupyter notebooks load faster(singlestore.com ↗)

159 points · by lneves12 · 2y ago · 43 comments

9.

Moving Away from Next.js(singlestore.com ↗)

4 points · by lneves12 · 5y ago · discuss