Marcus' random performance notes #217
Replies: 3 comments 5 replies
-
Painter definitely can't, since one of the conditions is "is this post liked", which is very volatile
I feel like I could fix that one!
I believe this one is entirely possible since
Mega Editor endpoints treat tags case-insensitively, meaning it would break adding "#CATS" to a post already tagged "#cats" (not sure why you'd want to do this, but it would be a weird inconsistency since the post editors on the dashboard also allow this)
nope! this is the new dashboard, so we only deal with posts' NPF representations. even if the beta post editor gets a markdown mode, posts will be saved and served to us as NPF. |
Beta Was this translation helpful? Give feedback.
-
All of the above notes were in the "fun if you like to use micro-optimization as a way to learn about Javascript, but insignificant to the user" category. Scrolling down the dash, though, results in some actually perceptible delays that are theoretically improvable. We're still talking "wouldn't really add to the user experience and would take development time and make code harder to understand, test, and maintain (unless there's some cleverness I haven't yet thought of)" so I don't know if these are necessarily worthwhile, either. Still fun to think about and study though! Nothing even vaguely close to, say, the XKit 7 postblock recursive exponential infinite loop scenario.
|
Beta Was this translation helpful? Give feedback.
-
Just a note here for posterity: while Sentry does do some interesting things, replacing native window functions with wrapped versions that it uses to record the last few things that happened in the case of a crash, the thing that appears to cause Tumblr to fire so many handlers on messages is that they're used to communicate ad data to all the ad containers on the page, which naturally increase in number as you scroll. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure exactly when I'll get to looking at this list again, but I did make it, so... here's the mostly-finished notes I took while skimming random portions of the XKit Rewritten source a little while ago! In short, I didn't find anything to noticeably improve, which isn't surprising for a carefully thought out vanilla javascript app.
Beta Was this translation helpful? Give feedback.
All reactions