ehmatthes / nl_analyzer

Tool for analyzing costs of various newsletter platforms.
1 stars 0 forks source link

Look at optimization #19

Open ehmatthes opened 10 months ago

ehmatthes commented 10 months ago

The app did not handle a little Show HN attention well (429), so look at a little optimization. But for a bunch of users, it might need a different deployment approach.

ehmatthes commented 10 months ago

Only use needed df columns

Looking at size of pricer.df, it's ~190kB no matter how many platforms are deselected. Only define, fill, and use parts of the df that are going to be visible on the page.

After this work, dashboard starts with only two platforms selected. Uses ~92kB, instead of 190kb. Dropping to one platform -> 57kb. No platforms -> 23.0kb.

ehmatthes commented 10 months ago

Other tasks

ehmatthes commented 10 months ago

Open questions

ehmatthes commented 10 months ago

Further optimizations

ehmatthes commented 10 months ago

Working notes

ehmatthes commented 10 months ago

Observations

ehmatthes commented 10 months ago

Reduce number of data points

ehmatthes commented 10 months ago

Optimize and profile Pricer

ehmatthes commented 10 months ago

Caching

ehmatthes commented 10 months ago

Remove matplotlib